PolylineSegment#
- class ansys.aedt.core.modeler.cad.polylines.PolylineSegment(segment_type, num_seg=0, num_points=0, arc_angle=0, arc_center=None, arc_plane=None)#
Creates and manipulates a segment of a polyline.
- Parameters:
- segment_type
str
Type of the object. Choices are
"Line"
,"Arc"
,"Spline"
, and"AngularArc"
.- num_seg
int
,optional
Number of segments for the types
"Arc"
,"Spline"
, and"AngularArc"
. The default is0
. For the typeLine
, this parameter is ignored.- num_points
int
,optional
Number of control points for the type
Spline
. For other types, this parameter is defined automatically.- arc_angle
float
orstr
,optional
Sweep angle in radians or a valid value string. For example,
"35deg"
or0.25
. This argument is Specific to type AngularArc.- arc_center
list
orstr
,optional
List of values in model units or a valid value string. For example, a list of
[x, y, z]
coordinates. This argument is Specific to type AngularArc.- arc_plane
str
,int
optional
Plane in which the arc sweep is performed in the active coordinate system
"XY"
,"YZ"
or"ZX"
. The default isNone
, in which case the plane is determined automatically by the first coordinate for which the starting point and center point have the same value. This argument is Specific to type AngularArc.
- segment_type
Examples
See
ansys.aedt.core.Primitives.Polyline
.