mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fix #2388.
This commit is contained in:
@@ -896,7 +896,7 @@ class IfcImporter:
|
||||
elif element.is_a("IfcAnnotation") and element.ObjectType == "DRAWING":
|
||||
mesh = self.create_camera(element, shape)
|
||||
self.link_mesh(shape, mesh)
|
||||
elif element.is_a("IfcAnnotation") and self.is_curve_annotation(element):
|
||||
elif element.is_a("IfcAnnotation") and self.is_curve_annotation(element) and shape:
|
||||
mesh = self.create_curve(element, shape)
|
||||
self.link_mesh(shape, mesh)
|
||||
elif shape:
|
||||
|
||||
@@ -22,13 +22,10 @@ In the **Properties** panel in the bottom right, activate the icon for the
|
||||
|
||||
.. image:: create-project.png
|
||||
|
||||
For convenience, this IFC project by default defines length, area, and volume
|
||||
units, and assumes you'll be working with both 2D and 3D geoemtry.
|
||||
|
||||
In the top right **Outliner** panel, you will see a hierarchy of spaces that has
|
||||
been automatically created for you. This hierarchy is known is the **Spatial
|
||||
Tree**. The Camera, Cube, and Light by default come with a fresh new Blender
|
||||
session, and are not part of your IFC project.
|
||||
Tree**. The Camera, Cube, and Light come with a fresh new Blender session by
|
||||
default, and are not part of your IFC project.
|
||||
|
||||
.. image:: default-spatial-tree.png
|
||||
|
||||
@@ -46,9 +43,8 @@ IFC Class**.
|
||||
|
||||
.. tip::
|
||||
|
||||
Regardless of the type of geometry or shape of the object, there are no
|
||||
restrictions on which category you can choose. You can have a monkey-shaped
|
||||
wall if you want!
|
||||
There are no restrictions on which **IFC Class** you can choose regardless of
|
||||
the shape of your object. You can have a monkey-shaped wall if you want!
|
||||
|
||||
All IFC objects must also belong inside the **Spatial Tree**. In the
|
||||
**Outliner** panel, you can drag and drop your newly created **IfcColumn/Cube**
|
||||
|
||||
@@ -816,7 +816,7 @@ class TestProperty:
|
||||
propertySet="propertySet",
|
||||
name="name",
|
||||
value="value",
|
||||
measure="String",
|
||||
measure="measure",
|
||||
uri="https://test.com",
|
||||
minOccurs="0",
|
||||
maxOccurs="unbounded",
|
||||
@@ -826,7 +826,7 @@ class TestProperty:
|
||||
"propertySet": {"simpleValue": "propertySet"},
|
||||
"name": {"simpleValue": "name"},
|
||||
"value": {"simpleValue": "value"},
|
||||
"@measure": "String",
|
||||
"@measure": "measure",
|
||||
"@uri": "https://test.com",
|
||||
"@minOccurs": "0",
|
||||
"@maxOccurs": "unbounded",
|
||||
@@ -1224,6 +1224,8 @@ class TestPartOf:
|
||||
}
|
||||
|
||||
def test_filtering_using_a_partof_facet(self):
|
||||
set_facet("partof")
|
||||
|
||||
ifc = ifcopenshell.file()
|
||||
|
||||
element = ifcopenshell.api.run("root.create_entity", ifc, ifc_class="IfcElementAssembly")
|
||||
|
||||
Reference in New Issue
Block a user