Get the correct Design Status iProp Value

Get the correct Design Status iProp Value

Raider_71
Collaborator Collaborator
281 Views
2 Replies
Message 1 of 3

Get the correct Design Status iProp Value

Raider_71
Collaborator
Collaborator

Hi Guys I would like to know if someone can help getting the actual value of the Design Status iProperty. There are three options and if I use the normal method I only get the index number of the listbox 1,2 or 3. Is it posible to get the text string value? Also depending on the language settings it should be language correct as well?

oApprDoc.PropertySets.Item("{32853F0F-3444-11D1-9E93-0060B03C1CA6}").ItemByPropId(PropertiesForDesignTrackingPropertiesEnum.kDesignStatusDesignTrackingProperties).Value

 

Is this posible to do? ... to get the language correct string value?

 

Thanks!

Cheers

 

 

 

 

0 Likes
282 Views
2 Replies
Replies (2)
Message 2 of 3

ekinsb
Alumni
Alumni

Unfortunately, this is not possible.  Inventor is storing the index of the listbox in the iProperty, which is what you're seeing.  Inventor reads this and then uses that index to set the selected value in the list box.  The contents of the list box itself is buit from reading a resource file based on the current language.  These specific strings are not available through the Inventor API.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 3

Raider_71
Collaborator
Collaborator
Thanks Brian,

English it will be then... 🙂

Cheers
0 Likes