CurveTable ========== .. py:class:: py3dm.CurveTable Python wrapper providing access to objects of type ``ON::curve_object`` stored in an ``ONX_Model``. This class offers a convenient interface for adding, retrieving, counting, and iterating over curve objects. ``CurveTable`` does not own the underlying data; it operates on the associated ``ONX_Model`` instance. .. py:method:: __iter__() -> collections.abc.Iterator[LineCurve] .. py:method:: __len__() -> int .. py:method:: 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 ``UUID`` of the line in case of successful addition, or an empty ``UUID`` otherwise. If the line is in the model, then the ``UUID`` is unique for all components in the model and is locked. .. py:method:: count() -> int Returns the number of objects of type ``ON::curve_object`` in the model. .. py:method:: get_by_uuid(object_uuid: uuid.UUID) -> LineCurve | None Returns the object with the given ``object_uuid`` or ``None`` if ``object_uuid`` is not found.