Inventor General Discussion

Inventor General Discussion

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

Bend Note Rule - Ilogic replace

226 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.

 

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:

Valued Contributor
theo.bot
Posts: 79
Registered: ‎09-30-2005
Message 2 of 2 (194 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:

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.