Message 1 of 13
Adding a linear assembly pattern via ilogic with unique name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning all,
I am still new to loops, but if I am using ilogic to place in a rect. pattern, one has to enter the name. How can I make sure the the name starts at 1 and auto indexes if I add more?
For example, I want to make one pattern and it it called Pipe Pattern 1. But if I add a new one, I need it to be Pipe Pattern 2, etc. So it needs to scan the assy and see what the last number used and make the next one in order.
example:
for each "pattern"
i=1
patternprefix = "pipe pattern"
Patterns.AddRectangular(patternprefix & i, rest of the stuff)
next
thanks in advance
Autodesk Certified Professional