Skip to content

CreateElementResult dataclass

Canonical path: CreateElementResult.CreateElementResult

Implementation of the data class for the result of the create_element function

Attributes:

  • elements (list[Any]) –

    list of elements to create

  • handles (list[HandleProperties]) –

    list of handles to create

  • preview_element (list[HandleProperties]) –

    list of element to draw only in the preview

  • placement_point (Point2D | Point3D | None) –

    if set, the point is used as global placement point for the elements

  • multi_placement (bool) –

    if True, the elements can be placed multiple times

  • preview_symbols (PreviewSymbols | None) –

    preview symbols to show in the preview

  • reinf_rearrange (ReinforcementRearrange) –

    properties for rearranging the reinforcement mark numbering

  • handle_placement_geo (list[Any]) –

    elements, which should be used during the handle modification

Methods:

is_empty

is_empty() -> bool

check for empty data

Returns:

  • bool

    True if no elements and handles exist, otherwise False