iAssembly Factory Excel table "IID" location

iAssembly Factory Excel table "IID" location

Anonymous
Not applicable
386 Views
1 Reply
Message 1 of 2

iAssembly Factory Excel table "IID" location

Anonymous
Not applicable

I want to dynamically generate a table for my iassembly by populating the internal Excel table. I am running into a snag because I can not find any reference where to find the "IID" of the part/assembly in the iassembly using VBA code. 

 

XX:Include/Exclude<iid>356</iid>

YY:Include/Exclude<iid>56</iid>

 

Thank You.

0 Likes
Accepted solutions (1)
387 Views
1 Reply
Reply (1)
Message 2 of 2

JamieVJohnson2
Collaborator
Collaborator
Accepted solution

I gave this a bit of pondering, the IID appears to be an internal id of each object you create in the model history, in order of creation.  It is not exposed to the API as far as I can see.  It is also probably related to the other question, where developers want to change the model order of an assembly like the user can by dragging items around in the browser.  Without that ID nothing is manipulatable.  However allowing the user to change or modify, or see that ID could expose Inventor to serious stability issues.  Imagine what could happen if you could affect its value.  It appears to be the equivalent to the AutoCAD ObjectID (or Handle) both of which require great care when working with.

 

For a table that is already created, you can read the IID within the table column properties, via code.  Perhaps create a table with all the objects, just to get the ids, then use code to read, and modify the table structure.  Its a hack of the unfavored kind.

 

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes