Basic iLogic coding question

Basic iLogic coding question

Anonymous
Not applicable
459 Views
1 Reply
Message 1 of 2

Basic iLogic coding question

Anonymous
Not applicable

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

 

0 Likes
460 Views
1 Reply
Reply (1)
Message 2 of 2

MjDeck
Autodesk
Autodesk

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.

0 Likes