iLogic rule for changing frame member part numbers

iLogic rule for changing frame member part numbers

Anonymous
Not applicable
1,137 Views
8 Replies
Message 1 of 9

iLogic rule for changing frame member part numbers

Anonymous
Not applicable

Hi there,

I am looking for a code to change the part numbers of all assembly members generated by the frame generator. Parts with the same length and family should have the same number. I must  be able to enter the first part number, all others should be consecutive to this one.

For example: all frame members are 50x5 equal angle, 1 is 500mm, 2 are 1000mm, 1 is 600mm. The part numbers should begin with 1000. In this case, I should get 1000, 1001 and 1002 for the four parts. I do not want to have four part numbers.

Maybe someone can help me.

 

0 Likes
1,138 Views
8 Replies
Replies (8)
Message 2 of 9

Tigerpirro
Advocate
Advocate

Have you tried working with this? See if you can get what you want.Screenshot_6.png

 

Message 3 of 9

SharkDesign
Mentor
Mentor

If you can't do it using Tigers way, you can try using this method:

 

https://www.youtube.com/watch?v=pMo10YVvvV0

 

 

  Inventor Certified Professional
Message 4 of 9

Anonymous
Not applicable

I had a look at this but there I have no control over the value of the part numbers and I might get conflicting numbers.

0 Likes
Message 5 of 9

Anonymous
Not applicable

This might be an option but I would prefer to do the alterations within Inventor, without opening Excel or BOM.

0 Likes
Message 6 of 9

SharkDesign
Mentor
Mentor

Presumably you need unique numbers that will never be used in another frame you make?

You can't do this without some sort of database. 

 

Vault can handle numbering systems and would apply to everything, not just frame members. 

 

You can do it the simple way that I showed in the video. 

 

Or you can still use excel but have iLogic look in the excel sheet for the next available number and apply that to the part number. 

 

Roughly what you'd do is:

Loop through every part

For every unique part you'd take a number from excel

Add the part name to an array list and check this each loop so you can skip it and not give it another new number. 

 

Your file names would not match the part numbers though. 

  Inventor Certified Professional
0 Likes
Message 7 of 9

Anonymous
Not applicable

That sounds promising!

I do not use Vault.

I've tried to write some iLogic code but I am struggling with it (never done it before)...

Could someone please help me with it?

0 Likes
Message 8 of 9

SharkDesign
Mentor
Mentor

You'd be better off asking in the Inventor customisation forum, that's where the iLogic dudes hang out. 

I have a lot of issue with ilogic>excel sporadically working so it would be pointless me doing it for you. 

  Inventor Certified Professional
0 Likes
Message 9 of 9

Anonymous
Not applicable

Thanks, I have a look there!

0 Likes