Provides script language access to C++ objects of this type.
Function members are as follows:
Return Type | Function Name | Documentation |
---|---|---|
int32 | AllDependencies | Validates that all dependencies in the <Model3D> are either unlinked or are linked to <Node> objects inside the <Model3D>. It is a common error to assign <Node> dependencies to <Node> objects outside the <Model3D>, for instance to a <Node> in an external <Model3D>. This is an error, however, and will be caught if this function is used. |
int32 | OpenFile | Opens a file from disk into the current <Model3D>. The existing <Model3D> is replaced. |
int32 | ReadFileHeader | Reads the header of the .BOX file without loading the entire file into memory. This information is available in the <DocumentInfo> object submitted to this function. |
int32 | Save | Saves the <Model3D> to disk using its current filename. Fails if the <Model3D> document has not been saved at least once (since the document must already have a filename). |
int32 | SaveAs | Saves a <Model3D> to the hard disk using the specified file name. This is the same as SaveAs, but with a more intuitive name. |
int32 | SaveFile | Saves a <Model3D> to the hard disk using the specified file name. |
int32 | SetModified | Flags the model as modified. Normal modifications to the model being edited do not require the use of this function, however if an external model is being edited, using this function will signal that the model should be saved before it is unloaded. |
int32 | Unsaved | Returns true if the <Model3D> object is unsaved. This test is performed by checking the <Model3D> object's Filename value. |
Object members are as follows:
Type Name | Accessor Name | Documentation |
---|---|---|
<DocumentInfo> | DocumentInfo | Returns a pointer to this object's <DocumentInfo> object. |
string | Filename | Returns the complete path on disk to the document represented by the <Model3D> object. |
int32 | Precision | Control the numeric precision used when a <Model3D> is saved to disk. Changing to single precision from double-precision can result in rounding errors, but will result in a lower disk file size. |
float64 | UnitScale | Gets or sets the <Model3D> object's UnitScale parameter. |
int32 | Units | Gets or sets the <Model3D> object's Units parameter. |