Inventor General Discussion

Inventor General Discussion

Reply
Contributor
celesiob
Posts: 15
Registered: ‎02-15-2013
Message 1 of 2 (196 Views)
Accepted Solution

Bend Note Rule - Ilogic replace

196 Views, 1 Replies
09-20-2013 05:21 AM

Hello, does anyone know any rule to replace the annotation direction bending, as attached image, I thank all who help.

Valued Contributor
theo.bot
Posts: 65
Registered: ‎09-30-2005
Message 2 of 2 (164 Views)

Re: Bend Note Rule - Ilogic replace

09-23-2013 04:14 PM in reply to: celesiob

 

Try this:

'loop tru all bend notes

For Each oBendnote In ThisDoc.Document.ActiveSheet.DrawingNotes.bendnotes

'clear previus text overrides

oBendnote.text=""

oBendnote.hidevalue=False

         'check direction and set note

         If oBendnote.text.Contains("DOWN") Then

         otext= Replace (oBendnote.text,"DOWN","BAIXO")

         oBendnote.text= otext

         oBendnote.hidevalue=True

         ElseIf oBendnote.text.Contains("UP") Then

         otext= Replace (oBendnote.text,"UP","CIMA")

         oBendnote.text=otext

         oBendnote.hidevalue=True

         End If

Next

 

don't forget to set a event trigger to run this rule for updating your notes, because now it's a text override.

 

succes:smileyhappy:

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.