Documents and doc objects
Last update: 16.07.2025A Document is the unit of loading and saving. Assuming it has been saved, a document corresponds to a Discovery scdoc file on disk.
A DocObject is an object that belongs to a document. Doc objects aren't the only objects that get saved when the document is saved, but they are the only objects that have a Document property. Examples of doc objects include: Part, Component, DesignBody, DesignFace, DatumPlane, and Note.
Doc objects provide:
- A parent-child tree containment hierarchy.
- Monikers for persistent identification.
- Update states to indicate that the doc object has changed.
- Custom attributes for storing third party data.
This section contains the following topics: