Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Basic iLogic coding question

1 REPLY 1
Reply
Message 1 of 2
Anonymous
272 Views, 1 Reply

Basic iLogic coding question

I am sure this is a super basic question:

I want a loop to run throught and change the vendor properties in an assembly.  That being said I'm not always sure the number of parts I will be changeing and have a loop running with a counter.  Since all the parts are in a similar format ( part:1,part:2, etc) I have a counter and a loop going to change all the parts until I get an error.   I am trying to get Inventor to exit the loop on error but I can't think of the code needed.  any help would be appreciated.  Thanks

 

1 REPLY 1
Message 2 of 2
MjDeck
in reply to: Anonymous

If you're using a For loop, then Exit For will get you out of the loop.

In a Do loop,  use Exit Do

In a While loop, use Exit While

http://msdn.microsoft.com/en-us/library/t2at9t47(v=vs.80).aspx


Mike Deck
Software Developer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report