From f351d804535fc95595740e84fd265db967961192 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 7 Sep 2020 18:16:27 +1000 Subject: [PATCH] Fix #979. Include IfcSpace in the preset for cut objects for an overall plan / section --- src/ifcblenderexport/blenderbim/bim/data/styles/default.css | 1 + src/ifcblenderexport/blenderbim/bim/data/styles/sample.css | 1 + src/ifcblenderexport/blenderbim/bim/operator.py | 2 -- src/ifcblenderexport/blenderbim/bim/prop.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcblenderexport/blenderbim/bim/data/styles/default.css b/src/ifcblenderexport/blenderbim/bim/data/styles/default.css index ba90071412..bc41585365 100644 --- a/src/ifcblenderexport/blenderbim/bim/data/styles/default.css +++ b/src/ifcblenderexport/blenderbim/bim/data/styles/default.css @@ -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; } diff --git a/src/ifcblenderexport/blenderbim/bim/data/styles/sample.css b/src/ifcblenderexport/blenderbim/bim/data/styles/sample.css index c0800b5e9b..a265db20a6 100644 --- a/src/ifcblenderexport/blenderbim/bim/data/styles/sample.css +++ b/src/ifcblenderexport/blenderbim/bim/data/styles/sample.css @@ -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; } diff --git a/src/ifcblenderexport/blenderbim/bim/operator.py b/src/ifcblenderexport/blenderbim/bim/operator.py index c66782f55d..5d58561dbb 100644 --- a/src/ifcblenderexport/blenderbim/bim/operator.py +++ b/src/ifcblenderexport/blenderbim/bim/operator.py @@ -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 diff --git a/src/ifcblenderexport/blenderbim/bim/prop.py b/src/ifcblenderexport/blenderbim/bim/prop.py index 2e7fe79a54..a087dc0c05 100644 --- a/src/ifcblenderexport/blenderbim/bim/prop.py +++ b/src/ifcblenderexport/blenderbim/bim/prop.py @@ -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', '')