Dimension Style
Previous Topic  Next Topic 

 

 

sdDimStyle

 

To control the setting on a dimension style. All the dimension style objects will be created and added to the DimStyles collection .The active dimension style (ActiveDimStyle ) determines the appearance of new dimensions that are created in the drawing. 

 

 

 

`        Adding Dimension Styles

 

        private void butDimStyles_Click(object sender, EventArgs e)

        {

            // Create new Document

            fDrawCtrl1.Document.NewDocument();

            // Add New Dimension styles.

            sdDimStyle dimstyle = fDrawCtrl1.Document.DimStyles.Add("NewStyle");

            // Set Arrow Size to 1;

            dimstyle.ArrowSize = 1;

            // Make this dimension style as active dimension style.

            fDrawCtrl1.Document.ActiveDimStyle = dimstyle;

            // Add a rotated dimension into entities collection

            fDrawCtrl1.Document.AddDimensionRotated(new Point3D(0, 0, 0), new Point3D(10, 0, 0), new Point3D(5, 5, 0),0);

            // Zoom All

            fDrawCtrl1.Document.ZoomAll();

            fDrawCtrl1.Refresh();

        }