Skip to content

Feature Request: API access to the cutting/section plane definition of an export solid #405

Description

@WickiDominik

Hi all,

I'm building a custom IFC section generator and need to read out the cutting/section plane definition of an export solid (Ausgabeelement) via the API.

I already found functions to work with export solids, e.g.:

  • attribute_controller.is_export_solid(element_id)
  • element_controller.get_export_solid_content_elements(element_id)
  • element_controller.set_export_solid_contents(export_solid_id, element_id_list)
  • shop_drawing_controller.assign_export_solid(ceo_element_id_list, element_id_list)
  • cadwork.element_type.is_export_solid / set_export_solid

However, none of these expose the actual cutting/section plane (cut name + normal vector + distance from global origin, or a reference point) that defines the export solid's section geometry.

Use case:
My IFC section generator needs to automatically produce the corresponding section views per part. For this I need the geometric plane definition of each export solid directly from the Cadwork model, instead of reconstructing it manually.

Proposal:
A function along the lines of

get_export_solid_cutting_plane(element_id: ElementId) -> plane_3d  # or normal_vector + distance

get_export_solid_cutt_name(element_id: ElementId) -> name [str]

that returns the plane used to define a given export solid.

If there's already an (undocumented) way to get this, I'd appreciate a pointer as well.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions