Renaming Drawing View Labels

Renaming Drawing View Labels

donaldleigh
Advocate Advocate
676 Views
2 Replies
Message 1 of 3

Renaming Drawing View Labels

donaldleigh
Advocate
Advocate

Evening all

 

I have the attached code that I created (using lots of information from this forum) and it works well. Only issue I have is that when the code is run the 1st line of the label is always blank then the 2nd line will have the "View Label" and the 3rd line will have the scale. The scale is only entered if the scale is different to the base view scale.

 

The Code will also rename any section and detail view labels if one is skipped.

 

Can anyone point out why the 1st line is always blank???

 

Currently using Inventor 2022

0 Likes
Accepted solutions (1)
677 Views
2 Replies
Replies (2)
Message 2 of 3

theo.bot
Collaborator
Collaborator
Accepted solution

@donaldleigh 

 

when you build your formatted text string you used "<Br/>" in the beginning. This means a break, new line. So if you remove this from your first line strings, you won't have these blank lines in your label. Only use it in the beginning of  your second and third line text.

 

theobot_0-1641453315627.png

as a reference, I also included my own view renaming rule, I check the excluded characters in the style library.

Message 3 of 3

donaldleigh
Advocate
Advocate

Hi @theo.bot 

 

Thanks very much for that.

 

Donald

0 Likes