Classes | |
| class | ProjectImporter |
Functions | |
| def | applyColorDict (doc, colordict=None) |
| def | buildRelAdditions (ifcfile) |
| def | buildRelColors (ifcfile, prodrepr) |
| def | buildRelGroups (ifcfile) |
| def | buildRelMaterialColors (ifcfile, prodrepr) |
| def | buildRelMattable (ifcfile) |
| def | buildRelProductColors (ifcfile, prodrepr) |
| def | buildRelProductRepresentation (ifcfile) |
| def | buildRelProductsAnnotations (ifcfile, root_element) |
| def | buildRelProperties (ifcfile) |
| def | buildRelSubtractions (ifcfile) |
| def | createFromProperties (propsets, ifcfile, parametrics) |
| def | dd2dms (dd) |
| def | decode (filename, utf=False) |
| def | dms2dd (degrees, minutes, seconds, milliseconds=0) |
| def | get2DShape (representation, scaling=1000) |
| def | getColorFromStyledItem (styled_item) |
| def | getIfcProperties (ifcfile, pid, psets, d) |
| def | getIfcPropertySets (ifcfile, pid) |
| def | getPlacement (entity, scaling=1000) |
| def | getProfileCenterPoint (sweptsolid) |
| def | getRotation (entity) |
| def | getScaling (ifcfile) |
| def | getVector (entity, scaling=1000) |
| def | isRectangle (verts) |
Function Documentation
◆ applyColorDict()
| def importIFCHelper.applyColorDict | ( | doc, | |
colordict = None |
|||
| ) |
applies the contents of a color dict to the objects in the given doc. If no colordict is given, the doc Meta property is searched for a "colordict" entry.
◆ buildRelAdditions()
| def importIFCHelper.buildRelAdditions | ( | ifcfile | ) |
build the additions relation table
Referenced by importIFC.insert().
◆ buildRelColors()
| def importIFCHelper.buildRelColors | ( | ifcfile, | |
| prodrepr | |||
| ) |
build the colors relation table and
◆ buildRelGroups()
| def importIFCHelper.buildRelGroups | ( | ifcfile | ) |
build the groups relation table
Referenced by importIFC.insert().
◆ buildRelMaterialColors()
| def importIFCHelper.buildRelMaterialColors | ( | ifcfile, | |
| prodrepr | |||
| ) |
◆ buildRelMattable()
| def importIFCHelper.buildRelMattable | ( | ifcfile | ) |
build the mattable relation table
Referenced by importIFC.insert().
◆ buildRelProductColors()
| def importIFCHelper.buildRelProductColors | ( | ifcfile, | |
| prodrepr | |||
| ) |
References getColorFromStyledItem().
Referenced by importIFC.insert().
◆ buildRelProductRepresentation()
| def importIFCHelper.buildRelProductRepresentation | ( | ifcfile | ) |
build the product/representations relation table
Referenced by importIFC.insert().
◆ buildRelProductsAnnotations()
| def importIFCHelper.buildRelProductsAnnotations | ( | ifcfile, | |
| root_element | |||
| ) |
build the products and annotations relation table and
Referenced by importIFC.insert().
◆ buildRelProperties()
| def importIFCHelper.buildRelProperties | ( | ifcfile | ) |
Builds and returns a dictionary of {object:[properties]} from an IFC file
◆ buildRelSubtractions()
| def importIFCHelper.buildRelSubtractions | ( | ifcfile | ) |
build the subtractions relation table
Referenced by importIFC.insert().
◆ createFromProperties()
| def importIFCHelper.createFromProperties | ( | propsets, | |
| ifcfile, | |||
| parametrics | |||
| ) |
Creates a FreeCAD parametric object from a set of properties.
Referenced by importIFC.insert().
◆ dd2dms()
| def importIFCHelper.dd2dms | ( | dd | ) |
◆ decode()
| def importIFCHelper.decode | ( | filename, | |
utf = False |
|||
| ) |
Referenced by importIFC.insert(), importSHP.open(), and importIFC.open().
◆ dms2dd()
| def importIFCHelper.dms2dd | ( | degrees, | |
| minutes, | |||
| seconds, | |||
milliseconds = 0 |
|||
| ) |
Referenced by importIFC.insert().
◆ get2DShape()
| def importIFCHelper.get2DShape | ( | representation, | |
scaling = 1000 |
|||
| ) |
Returns a shape from a 2D IfcShapeRepresentation
References DraftVecUtils.angle(), getPlacement(), getRotation(), and getVector().
Referenced by getProfileCenterPoint(), and importIFC.insert().
◆ getColorFromStyledItem()
| def importIFCHelper.getColorFromStyledItem | ( | styled_item | ) |
Referenced by buildRelProductColors().
◆ getIfcProperties()
| def importIFCHelper.getIfcProperties | ( | ifcfile, | |
| pid, | |||
| psets, | |||
| d | |||
| ) |
builds valid property values for FreeCAD
Referenced by importIFC.insert().
◆ getIfcPropertySets()
| def importIFCHelper.getIfcPropertySets | ( | ifcfile, | |
| pid | |||
| ) |
Returns a dictionary of {pset_id:[prop_id, prop_id...]} for an IFC object
Referenced by importIFC.insert().
◆ getPlacement()
| def importIFCHelper.getPlacement | ( | entity, | |
scaling = 1000 |
|||
| ) |
returns a placement from the given entity
References DraftVecUtils.getPlaneRotation(), and getVector().
Referenced by get2DShape(), getProfileCenterPoint(), and importIFC.insert().
◆ getProfileCenterPoint()
| def importIFCHelper.getProfileCenterPoint | ( | sweptsolid | ) |
returns the center point of the profile of an extrusion
References get2DShape(), and getPlacement().
Referenced by importIFC.insert().
◆ getRotation()
| def importIFCHelper.getRotation | ( | entity | ) |
returns a FreeCAD rotation from an IfcProduct with a IfcMappedItem representation
References WorkingPlane.plane.
Referenced by get2DShape(), and importIFC.insert().
◆ getScaling()
| def importIFCHelper.getScaling | ( | ifcfile | ) |
returns a scaling factor from file units to mm
Referenced by importIFC.insert().
◆ getVector()
| def importIFCHelper.getVector | ( | entity, | |
scaling = 1000 |
|||
| ) |
returns a vector from the given entity
Referenced by get2DShape(), and getPlacement().
◆ isRectangle()
| def importIFCHelper.isRectangle | ( | verts | ) |
returns True if the given 4 vertices form a rectangle
Referenced by importIFC.insert().
1.8.17