Add new properties to partlist iLogic

Add new properties to partlist iLogic

DFogliazza
Contributor Contributor
510 Views
1 Reply
Message 1 of 2

Add new properties to partlist iLogic

DFogliazza
Contributor
Contributor

The problem I have is to add new properties to an .idw file partlist using iLogic.

The same you do double-clicking on partlist, "Add columns" selection, "New properties".

The properties are "Inventor User Defined Properties" inside the .ipt/.iam files

The problem is that I can't get the right PropId to use inside

 

oPartslist.PartsListColumns.Add(PropertyTypeEnum.kFileProperty, , oProp.PropId)

 

Any chance someone has the code to do it?

 

 

 

 

 

 

 

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

JhoelForshav
Mentor
Mentor
Accepted solution

Hi @DFogliazza 

You can use the name of the property as PropertyIdentifier 🙂

So for example if you have a custom property named "Test" you can write it like this:

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