VB.Net Adding an iProp column to the bom list

VB.Net Adding an iProp column to the bom list

Anonymous
Not applicable
987 Views
3 Replies
Message 1 of 4

VB.Net Adding an iProp column to the bom list

Anonymous
Not applicable

Hi,

 

I have code that will pull a BOM from an active assembly and process the information. I am however stuck on how to add a column to the Inventor BOM before I extract it.

 

Each part in the model has an iProp with the Manufacturer. I need this iProp in a column on the BOM. Currently I have to manually add it to the model before running the extraction code.

 

Can someone please advise or point me in the right direction for the code.

 

Regards

Simon

0 Likes
988 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

You did not specify the Inventor version you are using. This example is from IV 2011.

 

1. Open your current .IAM template.

2. Insert a part file that contains the custom iProperty "Manufacturer"

3. In the Assembly BOM dialog, Select the Add Custom iProperty Columns icon. See image attached.

4. Save the template.

5. Delete the inserted part from the template.

6. Save the template again.

 

To test:

1. Create a new assembly file using the template above.

2. Insert a part containing the Custom iProperty

3. In the Assemble tab, select Bill of Materials.

 

The column should appear.

 

0 Likes
Message 3 of 4

Anonymous
Not applicable

Dennis,

 

Thank you for your reply, I have set up the main template as you have suggested so that any new assembly will have the iProp Column already in place.

 

However I am hoping to look at older models and if it does not have the 'Manufacturer' iProp column in place I want it adding via VB.

 

So whilst you reply is great for all future models I also need to add it via code for older models.

0 Likes
Message 4 of 4

Anonymous
Not applicable

I have no clue how you will accomplish that, except manually.

0 Likes