Inventor General

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

Bend Note Rule - Ilogic replace

185 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: 64
Registered: ‎09-30-2005
Message 2 of 2 (153 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:

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube