convert_segments_to_line#
- Modeler2D.convert_segments_to_line(assignment)[source]#
Convert a CreatePolyline list of segments to lines.
This method applies to splines and 3-point arguments.
- Parameters:
- assignment
int
,str
,or
ansys.aedt.core.modeler.cad.object_3d.Object3d
Specified for the object.
- assignment
- Returns:
- bool
True
if successful,False
if it fails.
References
>>> oEditor.ChangeProperty
Examples
>>> from ansys.aedt.core import Hfss >>> aedtapp = Hfss() >>> edge_object = aedtapp.modeler.create_object_from_edge("my_edge") >>> aedtapp.modeler.generate_object_history(edge_object) >>> aedtapp.modeler.convert_segments_to_line(edge_object.name)