AttributeGenerator

class compas_ifc.entities.generator.AttributeGenerator(attribute, parent, is_derived)

Bases: object

Generator class for generating a single IFC attribute.

Attributes:
attributeifcopenshell.ifcopenshell_wrapper.attribute

The IfcOpenShell attribute to generate a property for.

parentEntityGenerator

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.

Methods

__init__

generate

get_aggregation_type

get_attribute_type

get_select_type

get_type_declaration