Custom iProperties VB.NET

Custom iProperties VB.NET

keithjk
Advocate Advocate
416 Views
4 Replies
Message 1 of 5

Custom iProperties VB.NET

keithjk
Advocate
Advocate

I am not sure if this is possible but will ask the question anyway.

 

We have some components in our custom library that can be used under several part numbers. (Sortof a "one-to-many" relationship).  For example, file name "Part1.ipt" may be inserted in an assembly several times.  So "Part1.ipt" may have a part number of "PartNumber1", "PartNumber2", etc. within an assembly.

 

Is it even possiple to do this in Inventor?  If so, has anyone ever done anything similiar with VB.NET?

0 Likes
417 Views
4 Replies
Replies (4)
Message 2 of 5

xiaodong_liang
Autodesk Support
Autodesk Support
Hi,

The components inserted to assembly are the the instance of the source part. So only one part for the several instances. that means only one 'part number'.

The ways that I can think of are:

either you make copy of the source part, say 'part1_copy1.ipt', 'part1_copy2.ipt and insert them. thus you can modify their 'part number' respectively.
or, you can attach some attributes to the components through ComponentOccurrence.AttributeSets. in the attribute, you can store any information that is unique of this component.
0 Likes
Message 3 of 5

Balaji_Ram
Alumni
Alumni

Hi Keith,

 

How about creating an iPart with the part numbers varying ?

 

When inserting the iPart in the assembly, you can choose the part that matches the PartNumber.

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 4 of 5

Balaji_Ram
Alumni
Alumni

Sorry, I did not see Xiaodong's reply as the page wasn't refreshed at my end.

 

Regards,

Balaji

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 5

xiaodong_liang
Autodesk Support
Autodesk Support
I think the suggestion of Balaji is a nice way. Although generally iPart is a scenario to have parts in different parameters of geometry, it does not need to consider about the naming as iPart has managed them already.

Keith can decide which way is more closer to his workflow 🙂
0 Likes