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