mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 02:24:30 +00:00
typing
This commit is contained in:
@@ -268,14 +268,12 @@ class BIMSpatialDecompositionProperties(PropertyGroup):
|
||||
should_include_children: bool
|
||||
|
||||
@property
|
||||
def active_container(self):
|
||||
if self.containers and self.active_container_index < len(self.containers):
|
||||
return self.containers[self.active_container_index]
|
||||
def active_container(self) -> Union[BIMContainer, None]:
|
||||
return tool.Blender.get_active_uilist_element(self.containers, self.active_container_index)
|
||||
|
||||
@property
|
||||
def active_element(self):
|
||||
if self.elements and self.active_element_index < len(self.elements):
|
||||
return self.elements[self.active_element_index]
|
||||
def active_element(self) -> Union[Element, None]:
|
||||
return tool.Blender.get_active_uilist_element(self.elements, self.active_element_index)
|
||||
|
||||
|
||||
class BIMGridProperties(PropertyGroup):
|
||||
|
||||
@@ -43,15 +43,11 @@ def create_entity(
|
||||
operation type but many people forget.
|
||||
|
||||
:param ifc_class: Any rooted IFC class.
|
||||
:type ifc_class: str,optional
|
||||
:param predefined_type: Any built-in or user-defined predefined type that
|
||||
is applicable to that IFC class. For user-defined predefined types
|
||||
just enter in any value and the API will handle it automatically.
|
||||
:type predefined_type: str,optional
|
||||
:param name: The name of the new element.
|
||||
:type name: str,optional
|
||||
:return: The newly created element based on the specified IFC class.
|
||||
:rtype: ifcopenshell.entity_instance
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user