Difine New Property in BOM table

Difine New Property in BOM table

Fazlur_Rahaman
Advocate Advocate
143 Views
3 Replies
Message 1 of 4

Difine New Property in BOM table

Fazlur_Rahaman
Advocate
Advocate

Does anyone know how to add a custom new Property in Part List Column Chooser in BOM?

I can't find any reference on how to create new one.

Fazlur_Rahaman_0-1741709966334.png

 

 

Thanks in Advance for any help.

0 Likes
Accepted solutions (1)
144 Views
3 Replies
Replies (3)
Message 2 of 4

JelteDeJong
Mentor
Mentor
Accepted solution

This rule will add a column for the custom property Test.

Dim partsList As PartsList = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingPartsListFilter, "")

partsList.PartsListColumns.Add(PropertyTypeEnum.kCustomProperty, "", "Test")

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 4

Fazlur_Rahaman
Advocate
Advocate

Thank you for the code.

 

I have another question: If i have two bom table on same sheet, is there a way to select one?

For example, i have two table on same page. One for assembly and one for shipped loose items. I want to sort the Ship loose items by the "ITEM" using the code above. Is there a way to do this?

0 Likes
Message 4 of 4

Fazlur_Rahaman
Advocate
Advocate

I just noticed your code already does it using the

SelectionFilterEnum

 

thank you again for the help.

0 Likes