mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Add support for multiple dimension objects per view
This commit is contained in:
@@ -2162,9 +2162,9 @@ class CutSection(bpy.types.Operator):
|
|||||||
ifc_cutter.cut_objects = camera.data.BIMCameraProperties.cut_objects
|
ifc_cutter.cut_objects = camera.data.BIMCameraProperties.cut_objects
|
||||||
ifc_cutter.leader_obj = None
|
ifc_cutter.leader_obj = None
|
||||||
ifc_cutter.stair_obj = None
|
ifc_cutter.stair_obj = None
|
||||||
ifc_cutter.dimension_obj = None
|
ifc_cutter.dimension_objs = []
|
||||||
ifc_cutter.break_obj = None
|
ifc_cutter.break_obj = None
|
||||||
ifc_cutter.equal_obj = None
|
ifc_cutter.equal_objs = []
|
||||||
ifc_cutter.hidden_objs = []
|
ifc_cutter.hidden_objs = []
|
||||||
ifc_cutter.solid_objs = []
|
ifc_cutter.solid_objs = []
|
||||||
ifc_cutter.plan_level_obj = None
|
ifc_cutter.plan_level_obj = None
|
||||||
@@ -2187,9 +2187,9 @@ class CutSection(bpy.types.Operator):
|
|||||||
elif 'Stair' in obj.name:
|
elif 'Stair' in obj.name:
|
||||||
ifc_cutter.stair_obj = obj
|
ifc_cutter.stair_obj = obj
|
||||||
elif 'Equal' in obj.name:
|
elif 'Equal' in obj.name:
|
||||||
ifc_cutter.equal_obj = obj
|
ifc_cutter.equal_objs.append(obj)
|
||||||
elif 'Dimension' in obj.name:
|
elif 'Dimension' in obj.name:
|
||||||
ifc_cutter.dimension_obj = obj
|
ifc_cutter.dimension_objs.append(obj)
|
||||||
elif 'Break' in obj.name:
|
elif 'Break' in obj.name:
|
||||||
ifc_cutter.break_obj = obj
|
ifc_cutter.break_obj = obj
|
||||||
elif 'Hidden' in obj.name:
|
elif 'Hidden' in obj.name:
|
||||||
|
|||||||
@@ -115,10 +115,10 @@ class SvgWriter():
|
|||||||
x_offset = self.raw_width / 2
|
x_offset = self.raw_width / 2
|
||||||
y_offset = self.raw_height / 2
|
y_offset = self.raw_height / 2
|
||||||
|
|
||||||
if self.ifc_cutter.equal_obj:
|
for obj in self.ifc_cutter.equal_objs:
|
||||||
self.draw_dimension_annotations(self.ifc_cutter.equal_obj, text_override='EQ')
|
self.draw_dimension_annotations(obj, text_override='EQ')
|
||||||
if self.ifc_cutter.dimension_obj:
|
for obj in self.ifc_cutter.dimension_objs:
|
||||||
self.draw_dimension_annotations(self.ifc_cutter.dimension_obj)
|
self.draw_dimension_annotations(obj)
|
||||||
self.draw_measureit_arch_dimension_annotations()
|
self.draw_measureit_arch_dimension_annotations()
|
||||||
|
|
||||||
if self.ifc_cutter.break_obj:
|
if self.ifc_cutter.break_obj:
|
||||||
|
|||||||
Reference in New Issue
Block a user