def setProperties(self,obj): import ArchIFC ArchIFC.setProperties(obj) pl = obj.PropertiesList if not "Terrain" in pl: obj.addProperty("App::PropertyLink","Terrain","Site",QT_TRANSLATE_NOOP("App::Property","The base terrain of this site")) if not "Address" in pl: obj.addProperty("App::PropertyString","Address","Site",QT_TRANSLATE_NOOP("App::Property","The street and house number of this site, with postal box or apartment number if needed")) if not "PostalCode" in pl: obj.addProperty("App::PropertyString","PostalCode","Site",QT_TRANSLATE_NOOP("App::Property","The postal or zip code of this site")) if not "City" in pl: obj.addProperty("App::PropertyString","City","Site",QT_TRANSLATE_NOOP("App::Property","The city of this site")) if not "Region" in pl: obj.addProperty("App::PropertyString","Region","Site",QT_TRANSLATE_NOOP("App::Property","The region, province or county of this site")) if not "Country" in pl: obj.addProperty("App::PropertyString","Country","Site",QT_TRANSLATE_NOOP("App::Property","The country of this site")) if not "Latitude" in pl: obj.addProperty("App::PropertyFloat","Latitude","Site",QT_TRANSLATE_NOOP("App::Property","The latitude of this site")) if not "Longitude" in pl: obj.addProperty("App::PropertyFloat","Longitude","Site",QT_TRANSLATE_NOOP("App::Property","The latitude of this site")) if not "Declination" in pl: obj.addProperty("App::PropertyAngle","Declination","Site",QT_TRANSLATE_NOOP("App::Property","Angle between the true North and the North direction in this document")) if "NorthDeviation"in pl: obj.Declination = obj.NorthDeviation.Value obj.removeProperty("NorthDeviation") if not "Elevation" in pl: obj.addProperty("App::PropertyLength","Elevation","Site",QT_TRANSLATE_NOOP("App::Property","The elevation of level 0 of this site")) if not "Url" in pl: obj.addProperty("App::PropertyString","Url","Site",QT_TRANSLATE_NOOP("App::Property","A url that shows this site in a mapping website")) if not "Additions" in pl: obj.addProperty("App::PropertyLinkList","Additions","Site",QT_TRANSLATE_NOOP("App::Property","Other shapes that are appended to this object")) if not "Subtractions" in pl: obj.addProperty("App::PropertyLinkList","Subtractions","Site",QT_TRANSLATE_NOOP("App::Property","Other shapes that are subtracted from this object")) if not "ProjectedArea" in pl: obj.addProperty("App::PropertyArea","ProjectedArea","Site",QT_TRANSLATE_NOOP("App::Property","The area of the projection of this object onto the XY plane")) if not "Perimeter" in pl: obj.addProperty("App::PropertyLength","Perimeter","Site",QT_TRANSLATE_NOOP("App::Property","The perimeter length of this terrain")) if not "AdditionVolume" in pl: obj.addProperty("App::PropertyVolume","AdditionVolume","Site",QT_TRANSLATE_NOOP("App::Property","The volume of earth to be added to this terrain")) if not "SubtractionVolume" in pl: obj.addProperty("App::PropertyVolume","SubtractionVolume","Site",QT_TRANSLATE_NOOP("App::Property","The volume of earth to be removed from this terrain")) if not "ExtrusionVector" in pl: obj.addProperty("App::PropertyVector","ExtrusionVector","Site",QT_TRANSLATE_NOOP("App::Property","An extrusion vector to use when performing boolean operations")) obj.ExtrusionVector = FreeCAD.Vector(0,0,-100000) if not "RemoveSplitter" in pl: obj.addProperty("App::PropertyBool","RemoveSplitter","Site",QT_TRANSLATE_NOOP("App::Property","Remove splitters from the resulting shape")) if not "OriginOffset" in pl: obj.addProperty("App::PropertyVector","OriginOffset","Site",QT_TRANSLATE_NOOP("App::Property","An optional offset between the model (0,0,0) origin and the point indicated by the geocoordinates")) if not hasattr(obj,"Group"): obj.addExtension("App::GroupExtensionPython", self) if not "IfcType" in pl: obj.addProperty("App::PropertyEnumeration","IfcType","IFC",QT_TRANSLATE_NOOP("App::Property","The type of this object")) obj.IfcType = ArchIFC.IfcTypes obj.IcfType = "Site" self.Type = "Site"
def setProperties(self, obj): ArchIFC.setProperties(obj) pl = obj.PropertiesList if not "Height" in pl: obj.addProperty( "App::PropertyLength", "Height", "BuildingPart", QT_TRANSLATE_NOOP("App::Property", "The height of this object")) if not "LevelOffset" in pl: obj.addProperty( "App::PropertyLength", "LevelOffset", "BuildingPart", QT_TRANSLATE_NOOP( "App::Property", "The level of the (0,0,0) point of this level")) if not "Area" in pl: obj.addProperty( "App::PropertyArea", "Area", "BuildingPart", QT_TRANSLATE_NOOP("App::Property", "The computed floor area of this floor")) if not "IfcRole" in pl: obj.addProperty( "App::PropertyEnumeration", "IfcRole", "Component", QT_TRANSLATE_NOOP("App::Property", "The role of this object")) import ArchComponent obj.IfcRole = ArchComponent.IfcRoles if not "Description" in pl: obj.addProperty( "App::PropertyString", "Description", "Component", QT_TRANSLATE_NOOP( "App::Property", "An optional description for this component")) if not "Tag" in pl: obj.addProperty( "App::PropertyString", "Tag", "Component", QT_TRANSLATE_NOOP("App::Property", "An optional tag for this component")) if not "IfcAttributes" in pl: obj.addProperty( "App::PropertyMap", "IfcAttributes", "Component", QT_TRANSLATE_NOOP("App::Property", "Custom IFC properties and attributes")) if not "Shape" in pl: obj.addProperty( "Part::PropertyPartShape", "Shape", "BuildingPart", QT_TRANSLATE_NOOP("App::Property", "The shape of this object")) if not "IfcProperties" in pl: obj.addProperty( "App::PropertyMap", "IfcProperties", "Component", QT_TRANSLATE_NOOP("App::Property", "Stores IFC properties")) self.Type = "BuildingPart"
def setProperties(self, obj): ArchIFC.setProperties(obj) pl = obj.PropertiesList if not "Height" in pl: obj.addProperty( "App::PropertyLength", "Height", "BuildingPart", QT_TRANSLATE_NOOP("App::Property", "The height of this object")) if not "LevelOffset" in pl: obj.addProperty( "App::PropertyLength", "LevelOffset", "BuildingPart", QT_TRANSLATE_NOOP( "App::Property", "The level of the (0,0,0) point of this level")) if not "Area" in pl: obj.addProperty( "App::PropertyArea", "Area", "BuildingPart", QT_TRANSLATE_NOOP("App::Property", "The computed floor area of this floor")) if not "Description" in pl: obj.addProperty( "App::PropertyString", "Description", "Component", QT_TRANSLATE_NOOP( "App::Property", "An optional description for this component")) if not "Tag" in pl: obj.addProperty( "App::PropertyString", "Tag", "Component", QT_TRANSLATE_NOOP("App::Property", "An optional tag for this component")) if not "Shape" in pl: obj.addProperty( "Part::PropertyPartShape", "Shape", "BuildingPart", QT_TRANSLATE_NOOP("App::Property", "The shape of this object")) if not "SavedInventor" in pl: obj.addProperty( "App::PropertyFileIncluded", "SavedInventor", "BuildingPart", QT_TRANSLATE_NOOP( "App::Property", "This property stores an inventor representation for this object" )) obj.setEditorMode("SavedInventor", 2) self.Type = "BuildingPart"
def setProperties(self,obj): ArchIFC.setProperties(obj) pl = obj.PropertiesList if not "Height" in pl: obj.addProperty("App::PropertyLength","Height","BuildingPart",QT_TRANSLATE_NOOP("App::Property","The height of this object")) if not "LevelOffset" in pl: obj.addProperty("App::PropertyLength","LevelOffset","BuildingPart",QT_TRANSLATE_NOOP("App::Property","The level of the (0,0,0) point of this level")) if not "Area" in pl: obj.addProperty("App::PropertyArea","Area", "BuildingPart",QT_TRANSLATE_NOOP("App::Property","The computed floor area of this floor")) if not "Description" in pl: obj.addProperty("App::PropertyString","Description","Component",QT_TRANSLATE_NOOP("App::Property","An optional description for this component")) if not "Tag" in pl: obj.addProperty("App::PropertyString","Tag","Component",QT_TRANSLATE_NOOP("App::Property","An optional tag for this component")) if not "Shape" in pl: obj.addProperty("Part::PropertyPartShape","Shape","BuildingPart",QT_TRANSLATE_NOOP("App::Property","The shape of this object")) self.Type = "BuildingPart"