ifcopenshell.api.geometry.create_2pt_wall

Module Contents

ifcopenshell.api.geometry.create_2pt_wall.convert_unit_to_si(co: Any, si_conversion: float) Any
ifcopenshell.api.geometry.create_2pt_wall.create_2pt_wall(file: ifcopenshell.file, element: ifcopenshell.entity_instance, context: ifcopenshell.entity_instance, p1: tuple[float, float], p2: tuple[float, float], elevation: float, height: float, thickness: float, is_si: bool = True) ifcopenshell.entity_instance

Create a wall between two points (p1 and p2). A shortcut for geometry.add_wall_representation.

Parameters:
  • element – Wall IFC element.

  • context – IfcGeometricRepresentationContext for the representation. only Model/Body/MODEL_VIEW type of representations are currently supported.

  • p1 – The starting point (x, y) of the wall.

  • p2 – The ending point (x, y) of the wall.

  • elevation – The base elevation (z-coordinate) for the wall.

  • height – The height of the wall.

  • thickness – The thickness of the wall.

  • is_si – If True, provided arguments units are treated as SI (meters). If False, values are converted from project units to SI.

Returns:

IfcShapeRepresentation.