create_object_from_edge

Primitives2D.create_object_from_edge(edge)

Create a line object from an edge ID or from an pyaedt.modeler.Object3d.EdgePrimitive object.

Parameters
edgeint or pyaedt.modeler.Object3d.EdgePrimitive

Edge ID or pyaedt.modeler.Object3d.EdgePrimitive object.

Returns
pyaedt.modeler.Object3d.Object3d

3D object.

References

>>> oEditor.CreateObjectFromEdges