Add Ø-symbol in front of an automatically created dimension

Add Ø-symbol in front of an automatically created dimension

iogurt1
Advocate Advocate
592 Views
1 Reply
Message 1 of 2

Add Ø-symbol in front of an automatically created dimension

iogurt1
Advocate
Advocate

I started doing some drawing automation and with the help of this Forum and some other resources, I have finally figured out how to write iLogic rules to automatically add dimensions to a drawing. One thing I can't seem to find with all my Googling is how to add a Ø symbol in front of a dimension. My code snippet that creates the actual dimension looks like this: 

 

SyntaxEditor Code Snippet

Dim oID As GeneralDimension
oID = oGeneralDims.AddLinear(oPt1, intent1, intent2)
oID.CenterText

 

Is there a function I can add on the next line that's something like "oID.AddSymbol" or something? Any help is appreciated. If necessary, I can paste my complete code in here as well. 

0 Likes
Accepted solutions (1)
593 Views
1 Reply
Reply (1)
Message 2 of 2

iogurt1
Advocate
Advocate
Accepted solution
Of course, a few minutes after posting this question, I figured it out with the help of https://forums.autodesk.com/t5/inventor-customization/adding-text-to-inventor-dimension-with-ilogic-...

Just in case someone ever stumbles upon this and is wondering the same thing, here's my new code snippet that adds Ø in front of my value:

Dim oID As GeneralDimension
oID = oGeneralDims.AddLinear(oPt1, intent1, intent2)
oID.CenterText

Dim oDimensionText As DimensionText = oID.Text
oDimensionText.FormattedText = "Ø<DimensionValue/>"