ifcopenshell.api.profile.add_parameterized_profile

Module Contents

ifcopenshell.api.profile.add_parameterized_profile.add_parameterized_profile(file: ifcopenshell.file, ifc_class: str, profile_type: str = 'AREA') ifcopenshell.entity_instance

Adds a new parameterised profile

IFC offers parameterised profiles for common standardised hot roll steel sections and common concrete forms. A full list is available on the IFC documentation as subclasses of IfcParameterizedProfileDef.

Currently, this API has no benefit over directly calling ifcopenshell.file.create_entity.

Parameters:
  • ifc_class – The subclass of IfcParameterizedProfileDef that you’d like to create.

  • profile_type

Returns:

The newly created element depending on the specified ifc_class.

Example:

circle = ifcopenshell.api.profile.add_parameterized_profile(model,
    ifc_class="IfcCircleProfileDef")
circle.Radius = 1.
ifcopenshell.api.profile.add_parameterized_profile.ProfileType