Arch: Minor fixes to IFC export
This commit is contained in:
@@ -118,7 +118,7 @@ def makeStructure(baseobj=None,length=None,width=None,height=None,name="Structur
|
||||
obj.Length = h
|
||||
|
||||
if not height and not length:
|
||||
obj.IfcType = "Building Element Proxy"
|
||||
obj.IfcType = "Undefined"
|
||||
elif obj.Length > obj.Height:
|
||||
obj.IfcType = "Beam"
|
||||
obj.Label = translate("Arch","Beam")
|
||||
|
||||
@@ -3,8 +3,9 @@ import FreeCAD, Draft, json, ifcopenshell, math
|
||||
def getObjectsOfIfcType(objects, ifcType):
|
||||
results = []
|
||||
for object in objects:
|
||||
if object.IfcType == ifcType:
|
||||
results.append(object)
|
||||
if hasattr(object,"IfcType"):
|
||||
if object.IfcType == ifcType:
|
||||
results.append(object)
|
||||
return results
|
||||
|
||||
class SIUnitCreator:
|
||||
|
||||
Reference in New Issue
Block a user