Message 1 of 2
Setting Dimstyle Properties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys i am busy with a function that checks if a dimstyle exists if not it will create it. i have started by setting the properties but already running into some things i dont know. the things i am stuck with so far i have commented out see bellow. anyone that can help
//Set Line Properties
newDimStyle.Dimclrd = Autodesk.AutoCAD.Colors.Color.FromColorIndex(ColorMethod.ByAci, 4); // Dimension Lines Color
//newDimStyle. = . //Set Dimension LineType (Not Sure Cant Find the Correct way)
newDimStyle.Dimlwd = LineWeight.ByBlock; //Set Dimension LineWeight
//newDimStyle. = 1.25; // Set Dimension Baseline Spacing (Not SUre i cant find the right option)
newDimStyle.Dimsd1 = false; // Suppress dimline 1
newDimStyle.Dimsd2 = false; // Suppress dimline 2
newDimStyle.Dimclre = Autodesk.AutoCAD.Colors.Color.FromColorIndex(ColorMethod.ByAci, 4); // Extension Lines Color
newDimStyle.Dimltex1 = ObjectId.Null; //Set Linetype ext line 1
newDimStyle.Dimltex2 = ObjectId.Null; //Set Linetype ext line 2
newDimStyle.Dimse1 = false; // Suppress Ext Line 1
newDimStyle.Dimse2 = false; //Suppress Ext Line 2
newDimStyle.Dimexe = 1.25; //Set Extend Beyond dim Lines
newDimStyle.Dimexo = 1.25; //Set offset from origin
Civil 3D Certified Professional