Fix #979. Include IfcSpace in the preset for cut objects for an overall plan / section

This commit is contained in:
Dion Moult
2020-09-07 18:16:27 +10:00
parent ffebc44c64
commit f351d80453
4 changed files with 3 additions and 3 deletions
@@ -24,3 +24,4 @@
.material-sand { fill: url(#sand); }
.material-concrete { fill: url(#concrete); stroke-width: 0.5; }
.material-boundary { fill: none; stroke: red; stroke-width: 1; stroke-dasharray: 12,4,3,4,3,4; }
.IfcSpace { fill: none; stroke: none; }
@@ -7,3 +7,4 @@
.stair { marker-start: url(#stair-marker-start); marker-end: url(#stair-marker-end); }
.break { fill: white; }
.breakline { fill: none; stroke: black; stroke-linecap: 'round'; stroke-width: 0.25; marker-mid: url(#breakline-marker); }
.IfcSpace { fill: none; stroke: none; }
@@ -3996,9 +3996,7 @@ class RefreshDrawingList(bpy.types.Operator):
for obj in bpy.data.objects:
if not isinstance(obj.data, bpy.types.Camera):
continue
print(obj)
if 'IfcGroup/' in obj.name and obj.users_collection[0].name == obj.name:
print(obj)
new = bpy.context.scene.DocProperties.drawings.add()
new.name = obj.name.split('/')[1]
new.camera = obj
+1 -1
View File
@@ -566,7 +566,7 @@ class BIMCameraProperties(PropertyGroup):
raster_y: IntProperty(name='Raster Y', default=1000)
is_nts: BoolProperty(name='Is NTS')
cut_objects: EnumProperty(items=[
('.IfcWall|.IfcSlab|.IfcCurtainWall|.IfcStair|.IfcStairFlight|.IfcColumn|.IfcBeam|.IfcMember|.IfcCovering',
('.IfcWall|.IfcSlab|.IfcCurtainWall|.IfcStair|.IfcStairFlight|.IfcColumn|.IfcBeam|.IfcMember|.IfcCovering|.IfcSpace',
'Overall Plan / Section', ''),
('.IfcElement', 'Detail Drawing', ''),
('CUSTOM', 'Custom', '')