mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 16:31:10 +00:00
Fix #979. Include IfcSpace in the preset for cut objects for an overall plan / section
This commit is contained in:
@@ -24,3 +24,4 @@
|
|||||||
.material-sand { fill: url(#sand); }
|
.material-sand { fill: url(#sand); }
|
||||||
.material-concrete { fill: url(#concrete); stroke-width: 0.5; }
|
.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; }
|
.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); }
|
.stair { marker-start: url(#stair-marker-start); marker-end: url(#stair-marker-end); }
|
||||||
.break { fill: white; }
|
.break { fill: white; }
|
||||||
.breakline { fill: none; stroke: black; stroke-linecap: 'round'; stroke-width: 0.25; marker-mid: url(#breakline-marker); }
|
.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:
|
for obj in bpy.data.objects:
|
||||||
if not isinstance(obj.data, bpy.types.Camera):
|
if not isinstance(obj.data, bpy.types.Camera):
|
||||||
continue
|
continue
|
||||||
print(obj)
|
|
||||||
if 'IfcGroup/' in obj.name and obj.users_collection[0].name == obj.name:
|
if 'IfcGroup/' in obj.name and obj.users_collection[0].name == obj.name:
|
||||||
print(obj)
|
|
||||||
new = bpy.context.scene.DocProperties.drawings.add()
|
new = bpy.context.scene.DocProperties.drawings.add()
|
||||||
new.name = obj.name.split('/')[1]
|
new.name = obj.name.split('/')[1]
|
||||||
new.camera = obj
|
new.camera = obj
|
||||||
|
|||||||
@@ -566,7 +566,7 @@ class BIMCameraProperties(PropertyGroup):
|
|||||||
raster_y: IntProperty(name='Raster Y', default=1000)
|
raster_y: IntProperty(name='Raster Y', default=1000)
|
||||||
is_nts: BoolProperty(name='Is NTS')
|
is_nts: BoolProperty(name='Is NTS')
|
||||||
cut_objects: EnumProperty(items=[
|
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', ''),
|
'Overall Plan / Section', ''),
|
||||||
('.IfcElement', 'Detail Drawing', ''),
|
('.IfcElement', 'Detail Drawing', ''),
|
||||||
('CUSTOM', 'Custom', '')
|
('CUSTOM', 'Custom', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user