PreviewSymbols
implementation of the preview symbols
PreviewSymbols
Canonical path: PreviewSymbols.PreviewSymbols
implementation of the preview symbols
PreviewSymbolType
Canonical path: PreviewSymbols.PreviewSymbols.PreviewSymbolType
Bases: IntEnum
definition of the preview symbol types
add_arrow
add_circle
add_coord_cross
add_coord_cross(plane: Union[Plane3D, AxisPlacement3D], arm_length: float)
add a coordinate cross symbol
Parameters:
-
plane
(Union[Plane3D, AxisPlacement3D]
) –plane of the coordinate cross
-
arm_length
(float
) –length of the arms
add_cross
add_filled_rectangle
add_mark
add_polyline
add_polyline(
reference_point: Point3D,
polyline: Polyline2D,
color: Union[ARGB, int],
line_pattern: int = 4095,
)
add a polyline symbol
Parameters:
-
reference_point
(Point3D
) –reference point
-
polyline
(Polyline2D
) –polyline
-
color
(Union[ARGB, int]
) –color as ARGB value or color ID
-
line_pattern
(int
, default:4095
) –line pattern as 0/1 patten
add_text
add_text(
text: str,
reference_point: Point3D,
ref_pnt_pos: TextReferencePointPosition,
height: float,
color: Union[ARGB, int],
rotation_angle: Angle,
)
add a text symbol
Parameters:
-
text
(str
) –text
-
reference_point
(Point3D
) –reference point
-
ref_pnt_pos
(TextReferencePointPosition
) –point position of the reference point
-
height
(float
) –height
-
color
(Union[ARGB, int]
) –color as ARGB value or color ID
-
rotation_angle
(Angle
) –rotation angle
draw
draw(
insert_matrix: Matrix3D,
view_projection: ViewWorldProjection,
use_system_angle: bool = True,
)
draw the symbols
Parameters:
-
insert_matrix
(Matrix3D
) –insert matrix
-
view_projection
(ViewWorldProjection
) –view world projection
-
use_system_angle
(bool
, default:True
) –use the system angle state
Placeholder