convert_segments_to_line#
- Modeler2D.convert_segments_to_line(assignment)#
Convert a CreatePolyline list of segments to lines.
This method applies to splines and 3-point arguments.
- Parameters:
- assignment
int,str,oransys.aedt.core.modeler.cad.object_3d.Object3d Specified for the object.
- assignment
- Returns:
- bool
Trueif successful,Falseif 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)