AttributeGenerator
- class compas_ifc.entities.generator.AttributeGenerator(attribute, parent, is_derived)
Bases:
object
Generator class for generating a single IFC attribute.
- Attributes:
- attribute
ifcopenshell.ifcopenshell_wrapper.attribute
The IfcOpenShell attribute to generate a property for.
- parent
EntityGenerator
The parent class of the attribute to generate.
- is_derivedbool
Whether the attribute is derived.
- namestr
The name of the attribute to generate.
- importsset
The imports required for the attribute.
- typestr
The type of the attribute to generate.
- descriptionstr
The description of the attribute to generate.
- TEMPLATEstr
The template python code for the attribute to generate.
- TEMPLATE_DERIVEDstr
The template python code for the derived attribute to generate.
- attribute
Methods