CurveTable¶
- class py3dm.CurveTable¶
Python wrapper providing access to objects of type
ON::curve_objectstored in anONX_Model.This class offers a convenient interface for adding, retrieving, counting, and iterating over curve objects.
CurveTabledoes not own the underlying data; it operates on the associatedONX_Modelinstance.- __iter__() collections.abc.Iterator[LineCurve]¶
- add(start: Point3d, end: Point3d, attributes: None | ObjectAttributes = None) uuid.UUID¶
- add(line: Line, obj_attr: None | ObjectAttributes = None) uuid.UUID
- add(line: LineCurve, obj_attr: None | ObjectAttributes = None) uuid.UUID
Returns the
UUIDof the line in case of successful addition, or an emptyUUIDotherwise. If the line is in the model, then theUUIDis unique for all components in the model and is locked.