EntityGenerator

class compas_ifc.entities.generator.EntityGenerator(declaration)

Bases: object

Generator class for generating a single IFC entityclass.

Attributes:
declarationifcopenshell.ifcopenshell_wrapper.declaration

The IfcOpenShell declaration to generate a class for.

namestr

The name of the class to generate.

importsset

The imports required for the class.

attribute_importsset

The imports required for the attributes of the class.

parentstr

The parent class of the class to generate.

extensionstr

The extension class of the class to generate.

attributeslist[AttributeGenerator]

The attributes of the class to generate.

inverse_attributeslist[InverseAttributeGenerator]

The inverse attributes of the class to generate.

descriptionstr

The description of the class to generate.

TEMPLATEstr

The template python code for the class to generate.

Methods

__init__

generate

get_attribute_imports_string

get_attributes

get_description

get_extension_methods

get_parent