#1153. Drawing names are now generated based on their location and show an icon based on the drawing type.

This commit is contained in:
Dion Moult
2022-03-18 15:49:56 +11:00
parent 074a55b816
commit 2bfff12988
7 changed files with 35 additions and 5 deletions
+3
View File
@@ -399,10 +399,13 @@ class TestImportDrawings(NewFile):
ifc = ifcopenshell.file()
tool.Ifc.set(ifc)
drawing = ifc.createIfcAnnotation(Name="FOOBAR", ObjectType="DRAWING")
pset = ifcopenshell.api.run("pset.add_pset", ifc, product=drawing, name="EPset_Drawing")
ifcopenshell.api.run("pset.edit_pset", ifc, pset=pset, properties={"TargetView": "PLAN_VIEW"})
subject.import_drawings()
props = bpy.context.scene.DocProperties
assert props.drawings[0].ifc_definition_id == drawing.id()
assert props.drawings[0].name == "FOOBAR"
assert props.drawings[0].target_view == "PLAN_VIEW"
class TestImportSheets(NewFile):