Expand description
The three document classes (.nbrep / .fbrep / .tbrep).
The three document classes: a normal part (.nbrep), a family seed
(.fbrep) and a template (.tbrep).
On the file system the EXTENSION carries the class, matched
case-insensitively and written lowercase. The document carries it too, as
the top-level documentClass field (absent on a normal part, so every
existing file stays byte-identical). The two agree by construction: a load
writes the field from the file’s extension, and Save As writes the field
the dialog’s class choice names before the file gets that extension. The
field is what answers for a document that has no file yet (a new family),
and what the PLM, which keys documents without extensions, will read.
Enums§
- Document
Class - What a document is for.
Constants§
- DOCUMENT_
CLASS_ KEY - The document key the class is stored under.
Functions§
- document_
class - The class of the document the engine holds, from its
documentClassfield. Cheap enough for every frame: one map lookup. - is_
family - Whether the engine holds a family seed.
- is_
template - Whether the engine holds a template.
- set_
class_ in_ json - Set the class field on a document’s JSON (
Noneremoves it). - set_
document_ class - Write the class into the engine’s document without an undo step: this is bookkeeping (what the file is), not an edit the user could undo.
- strip_
class_ extension namewithout a trailing class extension (any case).