RufussMcGee
Technical User
How or where do you use this in VisualBasic tried writing a code few different ways but cannot find an example to go by.
Thanks
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If Not ThisDrawing.ActiveDimStyle.Name = "MyStyle" Then
ThisDrawing.ActiveDimStyle = ThisDrawing.DimStyles("MyStyle")
End If
ThisDrawing.ActiveLayer = ThisDrawing.Layers("DIM")
' Collect current value to reset.
'
oldDIMSD1Var = ThisDrawing.GetVariable("DIMSD1")
oldDIMJUSTVar = ThisDrawing.GetVariable("DIMJUST")
' Set to the desired values.
'
ThisDrawing.SetVariable "DIMSD1", NewDIMSD1Var
ThisDrawing.SetVariable "DIMJUST", NewDIMJUSTVar
....
When you change a dimensioning system variable, you are actually setting a document override for the active dimension style; you are not changing the active dimension style itself. This means that all newly created dimensions will still be created with the active dimension style only and will not reflect the overrides from the system variables. The overrides from the system variables will not be recognized on new dimensions until the active dimension style is updated. To change the settings of any dimension style, use the CopyFrom method. This method copies a dimension style configuration, including overrides, from a document, dimension, or other dimension style.