Hi all,
I have created a macro that finds a dimension, and copies its properties, to make a new dimension with these properties.
Additionally, it finds if it is overridden, and copies the Override Value, in order to create the new dimension with this same Override value.
However, as with many engineering drawings, sometimes the Override value is a String, e.g. "A" , or "DIM B", etc.
I am able to find if the dimension is overridden by the following code:
'swDispDim.GetOverride' (Which returns a boolean True or False if the dimension in overridden or not.)
Then I can get the Override value by using:
'swDispDim.GetDisplayData.GetTextAtIndex(0)'
The Above works perfectly.
However, the API method to set an Override Value requires a double value as the override value.
See SetOverride Method:
Function SetOverride( _ ByVal Override As Boolean, _ ByVal Value As Double _ ) As Boolean
This works with a double value, but not with Text.
Does anyone know of a method that allows me to set the Override Value to Text, of String type??
Any help will be appreciated.
Thank you!