Skip to content
On this page

View Document

An object of type MxCAD3DObject represents a view document object, which can be instantiated using the new keyword.

typescript
const mxcad3d = new MxCAD3DObject(); // Instantiate

Document

The view document object contains a Mx3dDbDocument document object, which is used to store the data of the 3D model. You can obtain the document object using the following method:

typescript
const doc = mxcad3d.getDocument(); // Get the document object

Labels

The document consists of multiple Mx3dDbLabel labels. Topological data, color data, and other information related to the graphics are stored on these labels.

typescript
const shapeLabel = doc.addShapeLabel(); // Create a label