### ===================================================================================================================
### Remove all supports
### ===================================================================================================================
# Copyright ©VIIA 2024
### ===================================================================================================================
### 1. Import modules
### ===================================================================================================================
# General imports
from __future__ import annotations
from typing import TYPE_CHECKING
# References for functions and classes in the viiaPackage
if TYPE_CHECKING:
from viiapackage.viiaStatus import ViiaProject
from viiapackage.supports.shallow_foundation.remove_supports import viia_remove_shallow_foundation_supports
from viiapackage.supports.pile_foundation.remove_supports import viia_remove_pile_foundation_supports
### ===================================================================================================================
### 2. Function to remove all supports
### ===================================================================================================================
[docs]def viia_remove_supports(project: ViiaProject):
"""
This function removes all shallow foundation supports that were previously modelled.
Input:
- project (obj): VIIA project object containing collections of fem objects and project variables.
Output:
- All supports for shallow foundtions are removed.
"""
# Remove shallow foundation supports
viia_remove_shallow_foundation_supports(project=project)
# Remove pile foundation supports
viia_remove_pile_foundation_supports(project=project)
# Reset status parameters
project.viia_settings.support_type = None
### ===================================================================================================================
### 3. End of script
### ===================================================================================================================