From 48243d6497ff7a4b2fe087df8467c1bafcc41b5d Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 10 Jul 2012 21:18:19 -0300 Subject: [PATCH] Arch: Small improvement to structure --- src/Mod/Arch/ArchStructure.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/ArchStructure.py b/src/Mod/Arch/ArchStructure.py index b87aeb198..b63853fe1 100644 --- a/src/Mod/Arch/ArchStructure.py +++ b/src/Mod/Arch/ArchStructure.py @@ -86,6 +86,8 @@ class _Structure(ArchComponent.Component): str(translate("Arch","Axes systems this structure is built on"))) obj.addProperty("App::PropertyVector","Normal","Base", str(translate("Arch","The normal extrusion direction of this object (keep (0,0,0) for automatic normal)"))) + obj.addProperty("App::PropertyIntegerList","Exclude","Base", + str(translate("Arch","The element numbers to exclude when this structure is based on axes"))) self.Type = "Structure" def execute(self,obj): @@ -186,11 +188,14 @@ class _Structure(ArchComponent.Component): apl = self.getAxisPlacement(obj) if pts: fsh = [] - for p in pts: + for i in range(len(pts)): + if hasattr(obj,"Exclude"): + if i in obj.Exclude: + continue sh = base.copy() if apl: sh.Placement.Rotation = apl.Rotation - sh.translate(p) + sh.translate(pts[i]) fsh.append(sh) obj.Shape = Part.makeCompound(fsh)