polyline_segment#
- Modeler3D.polyline_segment(type, num_seg=0, num_points=0, arc_angle=0, arc_center=None, arc_plane=None)[source]#
New segment of a polyline.
- Parameters:
- 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"
or"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 or"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.
- type
- Returns:
ansys.aedt.core.modeler.polylines.PolylineSegment