IFC file format exporter. More...
Functions | |
def buildAddress (obj, ifcfile) | |
def checkRectangle (edges) | |
def createCurve (ifcfile, wire) | |
def createProduct (ifcfile, obj, ifctype, uid, history, name, description, placement, representation, preferences) | |
def export (exportList, filename, colors=None, preferences=None) | |
def exportIFC2X3Attributes (obj, kwargs, scale=0.001) | |
def exportIfcAttributes (obj, kwargs, scale=0.001) | |
def getBrepFlag (obj, preferences) | |
def getEdgesAngle (edge1, edge2) | |
def getIfcTypeFromObj (obj) | |
def getPreferences () | |
def getProfile (ifcfile, p) | |
def getPropertyData (key, value, preferences) | |
def getRepresentation (ifcfile, context, obj, forcebrep=False, subtraction=False, tessellation=1, colors=None, preferences=None, forceclone=False) | |
def getText (field, obj) | |
def getUID (obj, preferences) | |
def isStandardCase (obj, ifctype) | |
Variables | |
string ifctemplate | |
pyopen = open | |
dictionary translationtable | |
Detailed Description
IFC file format exporter.
This module provides tools to export IFC files.
Function Documentation
◆ buildAddress()
def exportIFC.buildAddress | ( | obj, | |
ifcfile | |||
) |
Referenced by createProduct().
◆ checkRectangle()
def exportIFC.checkRectangle | ( | edges | ) |
References getEdgesAngle().
Referenced by getProfile().
◆ createCurve()
def exportIFC.createCurve | ( | ifcfile, | |
wire | |||
) |
References DraftVecUtils.angle(), and DraftVecUtils.equals().
Referenced by export(), getProfile(), and getRepresentation().
◆ createProduct()
def exportIFC.createProduct | ( | ifcfile, | |
obj, | |||
ifctype, | |||
uid, | |||
history, | |||
name, | |||
description, | |||
placement, | |||
representation, | |||
preferences | |||
) |
References buildAddress(), exportIFC2X3Attributes(), and exportIfcAttributes().
Referenced by export().
◆ export()
def exportIFC.export | ( | exportList, | |
filename, | |||
colors = None , |
|||
preferences = None |
|||
) |
References exportIFCStructuralTools.associates(), createCurve(), createProduct(), exportIFCStructuralTools.createStructuralGroup(), exportIFCStructuralTools.createStructuralMember(), getBrepFlag(), getIfcTypeFromObj(), exportIFCHelper.getObjectsOfIfcType(), getPreferences(), getPropertyData(), getRepresentation(), getText(), getUID(), isStandardCase(), pyopen, exportIFCStructuralTools.setup(), and exportIFCHelper.writeUnits().
Referenced by importIFC.export().
◆ exportIFC2X3Attributes()
def exportIFC.exportIFC2X3Attributes | ( | obj, | |
kwargs, | |||
scale = 0.001 |
|||
) |
References getIfcTypeFromObj().
Referenced by createProduct().
◆ exportIfcAttributes()
def exportIFC.exportIfcAttributes | ( | obj, | |
kwargs, | |||
scale = 0.001 |
|||
) |
References getIfcTypeFromObj().
Referenced by createProduct().
◆ getBrepFlag()
def exportIFC.getBrepFlag | ( | obj, | |
preferences | |||
) |
Referenced by export().
◆ getEdgesAngle()
def exportIFC.getEdgesAngle | ( | edge1, | |
edge2 | |||
) |
Referenced by checkRectangle().
◆ getIfcTypeFromObj()
def exportIFC.getIfcTypeFromObj | ( | obj | ) |
Referenced by export(), exportIFC2X3Attributes(), and exportIfcAttributes().
◆ getPreferences()
def exportIFC.getPreferences | ( | ) |
Referenced by export().
◆ getProfile()
def exportIFC.getProfile | ( | ifcfile, | |
p | |||
) |
References checkRectangle(), and createCurve().
Referenced by getRepresentation().
◆ getPropertyData()
def exportIFC.getPropertyData | ( | key, | |
value, | |||
preferences | |||
) |
Referenced by export().
◆ getRepresentation()
def exportIFC.getRepresentation | ( | ifcfile, | |
context, | |||
obj, | |||
forcebrep = False , |
|||
subtraction = False , |
|||
tessellation = 1 , |
|||
colors = None , |
|||
preferences = None , |
|||
forceclone = False |
|||
) |
References DraftVecUtils.angle(), createCurve(), getProfile(), DraftVecUtils.isNull(), DraftVecUtils.neg(), ArchComponent.Component.rebase(), and importDAE.triangulate().
Referenced by export().
◆ getText()
def exportIFC.getText | ( | field, | |
obj | |||
) |
Referenced by export().
◆ getUID()
def exportIFC.getUID | ( | obj, | |
preferences | |||
) |
Referenced by export().
◆ isStandardCase()
def exportIFC.isStandardCase | ( | obj, | |
ifctype | |||
) |
Referenced by export().
Variable Documentation
◆ ifctemplate
string exportIFC.ifctemplate |
◆ pyopen
exportIFC.pyopen = open |
Referenced by export().
◆ translationtable
dictionary exportIFC.translationtable |