Replace part of view label without changing to string

Replace part of view label without changing to string

bartlomiej.nowak2SCUW
Participant Participant
99 Views
1 Reply
Message 1 of 2

Replace part of view label without changing to string

bartlomiej.nowak2SCUW
Participant
Participant

Hello, 

 

i am wondering is it possible to change view labels text but witout changing whole label to string,

now when i am placing flat pattern view via ilogic rule so i can show label as it is, with view name and scale, when editing view by double click on it and make different scale, label is auto updating but when i tried 

view.Label.FormattedText

 it changes whole label to string and after changing scale of view by hand it is't updating in view label,

 

i want to replace view name text from view name to symbol from AIGDT font (02xF)

 

if i make this by making label as formatted text scale auto updating is disabling, because scale is place as string text not value, and if i place it as value it is show as 0,05 not 1 : 20, 

 

is it some simple way to make this rule?

0 Likes
100 Views
1 Reply
Reply (1)
Message 2 of 2

marcin_otręba
Advisor
Advisor

you must use correct syntax like :<DrawingViewName/>

start from here :

Inventor 2025 Help | XML Tags for FormattedText | Autodesk

 

you can use this in vba to check wat is under view label formatted text :

 

Sub v()
On Error Resume Next

Debug.Print ThisApplication.CommandManager.Pick(kDrawingViewFilter, "Choose view").Label.FormattedText
End Sub

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders