kittycad.models.modeling_cmd_req

Classes

ModelingCmdReq([cmd, cmd_id])

A graphics command submitted to the KittyCAD engine via the Modeling API.

class kittycad.models.modeling_cmd_req.ModelingCmdReq(cmd=<kittycad.types.Unset object>, cmd_id=<kittycad.types.Unset object>)[source][source]

A graphics command submitted to the KittyCAD engine via the Modeling API.

Method generated by attrs for class ModelingCmdReq.

__annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'cmd': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd.start_path, kittycad.models.modeling_cmd.move_path_pen, kittycad.models.modeling_cmd.extend_path, kittycad.models.modeling_cmd.extrude, kittycad.models.modeling_cmd.close_path, kittycad.models.modeling_cmd.camera_drag_start, kittycad.models.modeling_cmd.camera_drag_move, kittycad.models.modeling_cmd.camera_drag_end, kittycad.models.modeling_cmd.default_camera_look_at, kittycad.models.modeling_cmd.default_camera_enable_sketch_mode, kittycad.models.modeling_cmd.default_camera_disable_sketch_mode, kittycad.models.modeling_cmd.export, kittycad.models.modeling_cmd.entity_get_parent_id, kittycad.models.modeling_cmd.entity_get_num_children, kittycad.models.modeling_cmd.entity_get_child_uuid, kittycad.models.modeling_cmd.entity_get_all_child_uuids, kittycad.models.modeling_cmd.edit_mode_enter, kittycad.models.modeling_cmd.edit_mode_exit, kittycad.models.modeling_cmd.select_with_point, kittycad.models.modeling_cmd.select_clear, kittycad.models.modeling_cmd.select_add, kittycad.models.modeling_cmd.select_remove, kittycad.models.modeling_cmd.select_replace, kittycad.models.modeling_cmd.select_get, kittycad.models.modeling_cmd.highlight_set_entity, kittycad.models.modeling_cmd.highlight_set_entities, kittycad.models.modeling_cmd.new_annotation, kittycad.models.modeling_cmd.update_annotation, kittycad.models.modeling_cmd.object_visible, kittycad.models.modeling_cmd.get_entity_type, kittycad.models.modeling_cmd.solid3d_get_all_edge_faces, kittycad.models.modeling_cmd.solid3d_get_all_opposite_edges, kittycad.models.modeling_cmd.solid3d_get_opposite_edge, kittycad.models.modeling_cmd.solid3d_get_next_adjacent_edge, kittycad.models.modeling_cmd.solid3d_get_prev_adjacent_edge], 'cmd_id': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId]}[source]
__attrs_attrs__ = (Attribute(name='cmd', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd.start_path, kittycad.models.modeling_cmd.move_path_pen, kittycad.models.modeling_cmd.extend_path, kittycad.models.modeling_cmd.extrude, kittycad.models.modeling_cmd.close_path, kittycad.models.modeling_cmd.camera_drag_start, kittycad.models.modeling_cmd.camera_drag_move, kittycad.models.modeling_cmd.camera_drag_end, kittycad.models.modeling_cmd.default_camera_look_at, kittycad.models.modeling_cmd.default_camera_enable_sketch_mode, kittycad.models.modeling_cmd.default_camera_disable_sketch_mode, kittycad.models.modeling_cmd.export, kittycad.models.modeling_cmd.entity_get_parent_id, kittycad.models.modeling_cmd.entity_get_num_children, kittycad.models.modeling_cmd.entity_get_child_uuid, kittycad.models.modeling_cmd.entity_get_all_child_uuids, kittycad.models.modeling_cmd.edit_mode_enter, kittycad.models.modeling_cmd.edit_mode_exit, kittycad.models.modeling_cmd.select_with_point, kittycad.models.modeling_cmd.select_clear, kittycad.models.modeling_cmd.select_add, kittycad.models.modeling_cmd.select_remove, kittycad.models.modeling_cmd.select_replace, kittycad.models.modeling_cmd.select_get, kittycad.models.modeling_cmd.highlight_set_entity, kittycad.models.modeling_cmd.highlight_set_entities, kittycad.models.modeling_cmd.new_annotation, kittycad.models.modeling_cmd.update_annotation, kittycad.models.modeling_cmd.object_visible, kittycad.models.modeling_cmd.get_entity_type, kittycad.models.modeling_cmd.solid3d_get_all_edge_faces, kittycad.models.modeling_cmd.solid3d_get_all_opposite_edges, kittycad.models.modeling_cmd.solid3d_get_opposite_edge, kittycad.models.modeling_cmd.solid3d_get_next_adjacent_edge, kittycad.models.modeling_cmd.solid3d_get_prev_adjacent_edge], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cmd'), Attribute(name='cmd_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cmd_id'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
__contains__(key)[source][source]
Return type:

bool

__delitem__(key)[source][source]
Return type:

None

__dict__ = mappingproxy({'__module__': 'kittycad.models.modeling_cmd_req', '__annotations__': {'cmd': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd.start_path, kittycad.models.modeling_cmd.move_path_pen, kittycad.models.modeling_cmd.extend_path, kittycad.models.modeling_cmd.extrude, kittycad.models.modeling_cmd.close_path, kittycad.models.modeling_cmd.camera_drag_start, kittycad.models.modeling_cmd.camera_drag_move, kittycad.models.modeling_cmd.camera_drag_end, kittycad.models.modeling_cmd.default_camera_look_at, kittycad.models.modeling_cmd.default_camera_enable_sketch_mode, kittycad.models.modeling_cmd.default_camera_disable_sketch_mode, kittycad.models.modeling_cmd.export, kittycad.models.modeling_cmd.entity_get_parent_id, kittycad.models.modeling_cmd.entity_get_num_children, kittycad.models.modeling_cmd.entity_get_child_uuid, kittycad.models.modeling_cmd.entity_get_all_child_uuids, kittycad.models.modeling_cmd.edit_mode_enter, kittycad.models.modeling_cmd.edit_mode_exit, kittycad.models.modeling_cmd.select_with_point, kittycad.models.modeling_cmd.select_clear, kittycad.models.modeling_cmd.select_add, kittycad.models.modeling_cmd.select_remove, kittycad.models.modeling_cmd.select_replace, kittycad.models.modeling_cmd.select_get, kittycad.models.modeling_cmd.highlight_set_entity, kittycad.models.modeling_cmd.highlight_set_entities, kittycad.models.modeling_cmd.new_annotation, kittycad.models.modeling_cmd.update_annotation, kittycad.models.modeling_cmd.object_visible, kittycad.models.modeling_cmd.get_entity_type, kittycad.models.modeling_cmd.solid3d_get_all_edge_faces, kittycad.models.modeling_cmd.solid3d_get_all_opposite_edges, kittycad.models.modeling_cmd.solid3d_get_opposite_edge, kittycad.models.modeling_cmd.solid3d_get_next_adjacent_edge, kittycad.models.modeling_cmd.solid3d_get_prev_adjacent_edge], 'cmd_id': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'A graphics command submitted to the KittyCAD engine via the Modeling API.', 'to_dict': <function ModelingCmdReq.to_dict>, 'from_dict': <classmethod(<function ModelingCmdReq.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function ModelingCmdReq.__getitem__>, '__setitem__': <function ModelingCmdReq.__setitem__>, '__delitem__': <function ModelingCmdReq.__delitem__>, '__contains__': <function ModelingCmdReq.__contains__>, '__dict__': <attribute '__dict__' of 'ModelingCmdReq' objects>, '__weakref__': <attribute '__weakref__' of 'ModelingCmdReq' objects>, '__attrs_attrs__': (Attribute(name='cmd', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd.start_path, kittycad.models.modeling_cmd.move_path_pen, kittycad.models.modeling_cmd.extend_path, kittycad.models.modeling_cmd.extrude, kittycad.models.modeling_cmd.close_path, kittycad.models.modeling_cmd.camera_drag_start, kittycad.models.modeling_cmd.camera_drag_move, kittycad.models.modeling_cmd.camera_drag_end, kittycad.models.modeling_cmd.default_camera_look_at, kittycad.models.modeling_cmd.default_camera_enable_sketch_mode, kittycad.models.modeling_cmd.default_camera_disable_sketch_mode, kittycad.models.modeling_cmd.export, kittycad.models.modeling_cmd.entity_get_parent_id, kittycad.models.modeling_cmd.entity_get_num_children, kittycad.models.modeling_cmd.entity_get_child_uuid, kittycad.models.modeling_cmd.entity_get_all_child_uuids, kittycad.models.modeling_cmd.edit_mode_enter, kittycad.models.modeling_cmd.edit_mode_exit, kittycad.models.modeling_cmd.select_with_point, kittycad.models.modeling_cmd.select_clear, kittycad.models.modeling_cmd.select_add, kittycad.models.modeling_cmd.select_remove, kittycad.models.modeling_cmd.select_replace, kittycad.models.modeling_cmd.select_get, kittycad.models.modeling_cmd.highlight_set_entity, kittycad.models.modeling_cmd.highlight_set_entities, kittycad.models.modeling_cmd.new_annotation, kittycad.models.modeling_cmd.update_annotation, kittycad.models.modeling_cmd.object_visible, kittycad.models.modeling_cmd.get_entity_type, kittycad.models.modeling_cmd.solid3d_get_all_edge_faces, kittycad.models.modeling_cmd.solid3d_get_all_opposite_edges, kittycad.models.modeling_cmd.solid3d_get_opposite_edge, kittycad.models.modeling_cmd.solid3d_get_next_adjacent_edge, kittycad.models.modeling_cmd.solid3d_get_prev_adjacent_edge], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cmd'), Attribute(name='cmd_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cmd_id'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function ModelingCmdReq.__repr__>, '__eq__': <function ModelingCmdReq.__eq__>, '__ne__': <function ModelingCmdReq.__ne__>, '__lt__': <function ModelingCmdReq.__lt__>, '__le__': <function ModelingCmdReq.__le__>, '__gt__': <function ModelingCmdReq.__gt__>, '__ge__': <function ModelingCmdReq.__ge__>, '__hash__': None, '__init__': <function ModelingCmdReq.__init__>, '__match_args__': ('cmd', 'cmd_id')})[source]
__eq__(other)[source]

Method generated by attrs for class ModelingCmdReq.

__ge__(other)[source]

Method generated by attrs for class ModelingCmdReq.

__getitem__(key)[source][source]
Return type:

Any

__gt__(other)[source]

Method generated by attrs for class ModelingCmdReq.

__hash__ = None[source]
__init__(cmd=<kittycad.types.Unset object>, cmd_id=<kittycad.types.Unset object>)[source]

Method generated by attrs for class ModelingCmdReq.

__le__(other)[source]

Method generated by attrs for class ModelingCmdReq.

__lt__(other)[source]

Method generated by attrs for class ModelingCmdReq.

__match_args__ = ('cmd', 'cmd_id')[source]
__module__ = 'kittycad.models.modeling_cmd_req'[source]
__ne__(other)[source]

Method generated by attrs for class ModelingCmdReq.

__repr__()[source]

Method generated by attrs for class ModelingCmdReq.

__setitem__(key, value)[source][source]
Return type:

None

property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
cmd: Union[Unset, start_path, move_path_pen, extend_path, extrude, close_path, camera_drag_start, camera_drag_move, camera_drag_end, default_camera_look_at, default_camera_enable_sketch_mode, default_camera_disable_sketch_mode, export, entity_get_parent_id, entity_get_num_children, entity_get_child_uuid, entity_get_all_child_uuids, edit_mode_enter, edit_mode_exit, select_with_point, select_clear, select_add, select_remove, select_replace, select_get, highlight_set_entity, highlight_set_entities, new_annotation, update_annotation, object_visible, get_entity_type, solid3d_get_all_edge_faces, solid3d_get_all_opposite_edges, solid3d_get_opposite_edge, solid3d_get_next_adjacent_edge, solid3d_get_prev_adjacent_edge][source]
cmd_id: Union[Unset, ModelingCmdId][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(ZG, bound= ModelingCmdReq)

to_dict()[source][source]
Return type:

Dict[str, Any]