Merge pull request #9765 from yorikvanhavre/arch-remove-undefined-type
Arch remove undefined type
This commit is contained in:
@@ -285,7 +285,7 @@ class _Equipment(ArchComponent.Component):
|
||||
# IFC2x3 does know a IfcFurnishingElement
|
||||
obj.IfcType = "Furnishing Element"
|
||||
else:
|
||||
obj.IfcType = "Undefined"
|
||||
obj.IfcType = "Building Element Proxy"
|
||||
# Add features in the SketchArch External Add-on, if present
|
||||
self.addSketchArchFeatures(obj)
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ class _ArchPipe(ArchComponent.Component):
|
||||
obj.IfcType = "Pipe Segment"
|
||||
else:
|
||||
# IFC2x3 does not know a Pipe Segment
|
||||
obj.IfcType = "Undefined"
|
||||
obj.IfcType = "Building Element Proxy"
|
||||
|
||||
def setProperties(self,obj):
|
||||
|
||||
|
||||
@@ -516,7 +516,7 @@ class ProfileTaskPanel:
|
||||
elif isinstance(self.obj.Proxy,_ProfileT):
|
||||
self.type = "T"
|
||||
else:
|
||||
self.type = "Undefined"
|
||||
self.type = "Building Element Proxy"
|
||||
self.form = QtGui.QWidget()
|
||||
layout = QtGui.QVBoxLayout(self.form)
|
||||
self.comboCategory = QtGui.QComboBox(self.form)
|
||||
|
||||
@@ -117,7 +117,7 @@ def makeStructure(baseobj=None,length=None,width=None,height=None,name=None):
|
||||
obj.Length = h
|
||||
|
||||
if not height and not length:
|
||||
obj.IfcType = "Undefined"
|
||||
obj.IfcType = "Building Element Proxy"
|
||||
obj.Label = name if name else translate("Arch","Structure")
|
||||
elif obj.Length > obj.Height:
|
||||
obj.IfcType = "Beam"
|
||||
|
||||
@@ -4007,11 +4007,5 @@
|
||||
}
|
||||
],
|
||||
"complex_attributes": []
|
||||
},
|
||||
"IfcUndefined": {
|
||||
"is_abstract": false,
|
||||
"parent": "IfcObject",
|
||||
"attributes": [],
|
||||
"complex_attributes": []
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13265,11 +13265,5 @@
|
||||
"type": "IfcProductRepresentation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcUndefined": {
|
||||
"is_abstract": false,
|
||||
"parent": "IfcObject",
|
||||
"attributes": [],
|
||||
"complex_attributes": []
|
||||
}
|
||||
}
|
||||
|
||||
@@ -678,7 +678,7 @@ class ArchTest(unittest.TestCase):
|
||||
def testRemove(self):
|
||||
App.Console.PrintLog ('Checking Arch Remove...\n')
|
||||
l=Draft.makeLine(App.Vector(0,0,0),App.Vector(2,0,0))
|
||||
w = Arch.makeWall(l,width=0.2,height=2)
|
||||
w = Arch.makeWall(l,width=0.2,height=2,align="Right")
|
||||
sb = Part.makeBox(1,1,1)
|
||||
b = App.ActiveDocument.addObject('Part::Feature','Box')
|
||||
b.Shape = sb
|
||||
|
||||
Reference in New Issue
Block a user