IFCWriter
- class compas_ifc.writer.IFCWriter(model)
Bases:
object
A class for writing IFC files.
- Parameters:
- model
compas_ifc.model.Model
The model to which the writer belongs.
- model
- Attributes:
- model
compas_ifc.model.Model
The model to which the writer belongs.
- file
ifcopenshell.file
The IFC file to which the model is being written to.
- default_context
ifcopenshell.entity_instance
The default context of the model. Created if it does not exist.
- default_body_context
ifcopenshell.entity_instance
The default body context of the model. Created if it does not exist.
- default_project
ifcopenshell.entity_instance
The default project of the model. Created if it does not exist.
- default_site
ifcopenshell.entity_instance
The default site of the model. Created if it does not exist.
- default_building
ifcopenshell.entity_instance
The default building of the model. Created if it does not exist.
- default_building_storey
ifcopenshell.entity_instance
The default building storey of the model. Created if it does not exist.
- model
Methods
Writes a new parental relation to the ifc file.
Exports the given entities to the ifc file.
Resets the writer to start with a new ifc file.
Writes the model as ifc file to the given filepath.
writes a existing parental relation to the ifc file, trimming the non existing children.
Writes the given entity recursively with all its referencing attributes to the ifc file.
Writes the placement of the given entity to the ifc file.
Writes the representations of the given entity to the ifc file.
Writes the relation of the given entity to the ifc file.