This commit is contained in:
Andrej730
2024-05-10 11:21:53 +05:00
parent e7eb00eaa3
commit c50d1ea2fe
105 changed files with 502 additions and 251 deletions
@@ -17,11 +17,13 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.util.system
import ifcopenshell.util.element
import ifcopenshell.util.placement
def copy_class(file, product=None) -> None:
def copy_class(file: ifcopenshell.file, product: ifcopenshell.entity_instance) -> ifcopenshell.entity_instance:
"""Copies a product
The following relationships are also duplicated:
@@ -20,14 +20,15 @@ import ifcopenshell
import ifcopenshell.util.type
import ifcopenshell.util.schema
import ifcopenshell.util.element
from typing import Optional
def reassign_class(
file,
product=None,
ifc_class="IfcBuildingElementProxy",
predefined_type=None,
) -> None:
file: ifcopenshell.file,
product: ifcopenshell.entity_instance,
ifc_class: str = "IfcBuildingElementProxy",
predefined_type: Optional[str] = None,
) -> ifcopenshell.entity_instance:
"""Changes the class of a product
If you ever created a wall then realised it's meant to be something