Property Model
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
Model
Gets the document's model layout.
public vdLayout Model { get; }
Property Value
Examples
Add a new line entity to the model layout and make the model layout as active layout.
doc.Model.Entities.AddItem(new vdLine(doc,new gPoint(0, 0), new gPoint(100, 100)));
doc.ActiveLayOut = doc.Model;
doc.ZoomExtents();
doc.Redraw(false);
See vdPrint examples for document model and layout with viewports management, according to the desired print scale of the design
Remarks
The model layout is the default vdLayout where entities are typically created.
The model layout is not part of the LayOuts collection and cannot be added or removed from the document.
vdViewport objects created in other layouts reference the model layout to get the entities to be displayed in the viewport.
use the ActiveLayOut property to select the model layout as the active layout and create entities in it."/>
Use the Entities of this layout to add entities to the model layout.