Ordinate Dimensions - Line Break Doubles via FormattedText

Ordinate Dimensions - Line Break Doubles via FormattedText

rharmon8EDJS
Participant Participant
97 Views
0 Replies
Message 1 of 1

Ordinate Dimensions - Line Break Doubles via FormattedText

rharmon8EDJS
Participant
Participant

I am running into an issue when I update an ordinate dimension via FormattedText on Inventor Professional 2025

 

Before:

rharmon8EDJS_0-1745850288411.png

After:

rharmon8EDJS_1-1745850475961.png

For Each oDwgSheet In ThisApplication.ActiveDocument.Sheets
    Try
        For Each oDim In oDwgSheet.DrawingDimensions.OrdinateDimensions
            If oDim.text.FormattedText.Contains("DEMO_TAG") Then
                oDim.text.FormattedText = oDim.text.FormattedText.Replace("DEMO_TAG", "DEMO_TAG1")
            End If
        Next
    Catch
    End Try
Next

 

I do not think it's an iLogic issue but rather an Inventor issue; Simply modifying the ordinate dimension at all fixes this weird line break. Has anyone else run into this with .FormattedText and any solutions?

 

Thanks!

0 Likes
98 Views
0 Replies
Replies (0)