models: Displayed data¶
-
class
Model
(name)¶ A Model is a
Drawing
together with an id number that allows it to be referenced in a typed command.Model subclasses can be saved session files.
Parameters: name : str
The name of the model.
Attributes
id (None or tuple of int) Model/submodel identification: e.g., 1.3.2 is (1, 3, 2). Set and unset by Models
instance.tool_info (a ToolInfo
instance) The tool that provides the subclass.SESSION_ENDURING (bool, class-level optional) If True, then model survives across sessions. SESSION_SKIP (bool, class-level optional) If True, then model is not saved in sessions. -
all_models
()¶ Return all models including self and children at all levels.
-
child_models
()¶ Return all models including self and children at all levels.
-