Merge pull request #9765 from yorikvanhavre/arch-remove-undefined-type

Arch remove undefined type
This commit is contained in:
Yorik van Havre
2023-06-19 10:47:10 +02:00
committed by GitHub
7 changed files with 5 additions and 17 deletions

View File

@@ -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)

View File

@@ -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):

View File

@@ -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)

View File

@@ -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"

View File

@@ -4007,11 +4007,5 @@
}
],
"complex_attributes": []
},
"IfcUndefined": {
"is_abstract": false,
"parent": "IfcObject",
"attributes": [],
"complex_attributes": []
}
}

View File

@@ -13265,11 +13265,5 @@
"type": "IfcProductRepresentation"
}
]
},
"IfcUndefined": {
"is_abstract": false,
"parent": "IfcObject",
"attributes": [],
"complex_attributes": []
}
}

View File

@@ -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