fix couple building docs errors / warnings

This commit is contained in:
Andrej730
2024-01-24 16:36:58 +05:00
parent d344923a3c
commit c3ddfbdae2
3 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ class Qto(blenderbim.core.tool.Qto):
"quantity_value" : XX, "quantity_value" : XX,
"quantity_type" : XX "quantity_type" : XX
}] }]
:rtype list :rtype: list
Example: Example:
@@ -54,7 +54,7 @@ class Usecase:
the work performed. the work performed.
:type resource: ifcopenshell.entity_instance.entity_instance :type resource: ifcopenshell.entity_instance.entity_instance
:return None: :return None:
:rtype None: :rtype: None:
""" """
self.file = file self.file = file
self.settings = {"resource": resource} self.settings = {"resource": resource}
@@ -338,7 +338,7 @@ def get_type(element):
:param element: The element occurrence :param element: The element occurrence
:type: ifcopenshell.entity_instance.entity_instance :type: ifcopenshell.entity_instance.entity_instance
:return: The related type element :return: The related type element
:rtype ifcopenshell.entity_instance.entity_instance :rtype: ifcopenshell.entity_instance.entity_instance
Example: Example:
@@ -817,8 +817,9 @@ def get_aggregate(element):
Example: Example:
.. code:: python .. code:: python
element = file.by_type("IfcBeam")[0]
aggregate = ifcopenshell.util.element.get_aggregate(element) element = file.by_type("IfcBeam")[0]
aggregate = ifcopenshell.util.element.get_aggregate(element)
""" """
if hasattr(element, "Decomposes") and element.Decomposes: if hasattr(element, "Decomposes") and element.Decomposes:
if element.Decomposes[0].is_a("IfcRelAggregates"): # IFC2X3 if element.Decomposes[0].is_a("IfcRelAggregates"): # IFC2X3
@@ -835,8 +836,9 @@ def get_nest(element):
Example: Example:
.. code:: python .. code:: python
element = file.by_type("IfcBeam")[0]
aggregate = ifcopenshell.util.element.get_nest(element) element = file.by_type("IfcBeam")[0]
aggregate = ifcopenshell.util.element.get_nest(element)
""" """
if hasattr(element, "Nests"): if hasattr(element, "Nests"):
if element.Nests: if element.Nests:
@@ -856,9 +858,9 @@ def get_parts(element):
Example: Example:
.. code:: python .. code:: python
element = file.by_type("IfcElementAssembly")[0]
parts = ifcopenshell.util.element.get_parts(element)
element = file.by_type("IfcElementAssembly")[0]
parts = ifcopenshell.util.element.get_parts(element)
""" """
if hasattr(element, "IsDecomposedBy") and element.IsDecomposedBy: if hasattr(element, "IsDecomposedBy") and element.IsDecomposedBy:
if element.IsDecomposedBy[0].is_a("IfcRelAggregates"): if element.IsDecomposedBy[0].is_a("IfcRelAggregates"):
@@ -879,9 +881,9 @@ def get_components(element, include_ports=False):
Example: Example:
.. code:: python .. code:: python
element = file.by_type("IfcElementAssembly")[0]
components = ifcopenshell.util.element.get_components(element)
element = file.by_type("IfcElementAssembly")[0]
components = ifcopenshell.util.element.get_components(element)
""" """
if hasattr(element, "IsNestedBy"): if hasattr(element, "IsNestedBy"):
if element.IsNestedBy: if element.IsNestedBy: