Property ActiveDimStyle
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
ActiveDimStyle
Get/Set the active vdDimstyle of the document. vdDimension objects assign this dimstyle as default when the setDocumentDefaults() method is called.
public vdDimstyle ActiveDimStyle { get; set; }
Property Value
Examples
Changes the ActiveDimStyle and create a new vdDimension that reference to this style.
//create a new dimension style with name "MyNewDimStyle" and make it as active.
vdDimstyle dimstyle = doc.DimStyles.Add("MyNewDimStyle");
doc.ActiveDimStyle = dimstyle;
//create a new dimension entitity
vdDimension dim = new vdDimension();
//select the document that the dimension is reference to.
dim.SetUnRegisterDocument(doc);
//select the default active properties of the document object for the entity
dim.setDocumentDefaults();
Console.WriteLine(dim.Style.Name);//the output will be "MyNewDimStyle"
Remarks
This property is used when setDocumentDefaults() is called.
Default value Standard
Raizes the OnBeforeModifyObject event and the OnAfterModifyObject event.