Arch: misc improvements and bugfixes
* Allow mesh-based windows (with non-solid shape) to pass through * Allow precast elements to be clones * Structure elements now display a different icon when thry are clones * Arch clones now get the same placements as their cloned object on create * Fixed the bad export of clones to IFC * Recoded the Site/Building/Floor IFC export to be more flexible
This commit is contained in:
@@ -716,8 +716,7 @@ class _Window(ArchComponent.Component):
|
||||
base = self.processSubShapes(obj,base)
|
||||
if base:
|
||||
if not base.isNull():
|
||||
if base.Solids:
|
||||
self.applyShape(obj,base,pl)
|
||||
self.applyShape(obj,base,pl,allowinvalid=True,allownosolid=True)
|
||||
|
||||
def getSubVolume(self,obj,plac=None):
|
||||
"returns a subvolume for cutting in a base object"
|
||||
@@ -746,7 +745,10 @@ class _Window(ArchComponent.Component):
|
||||
width = max(b.XLength,b.YLength,b.ZLength)
|
||||
if not width:
|
||||
if Draft.isClone(obj,"Window"):
|
||||
orig = obj.Objects[0]
|
||||
if hasattr(obj,"CloneOf"):
|
||||
orig = obj.CloneOf
|
||||
else:
|
||||
orig = obj.Objects[0]
|
||||
if orig.Base:
|
||||
base = orig.Base
|
||||
if hasattr(orig,"HoleDepth"):
|
||||
|
||||
Reference in New Issue
Block a user