Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vault 2015 R2, get numScheme Predefined list description

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Denis99
408 Views, 1 Reply

Vault 2015 R2, get numScheme Predefined list description

Hello, 


I have a custom numbering scheme(Fixed Text, Free text and Pre-defined list), is possible to get the "description" from each "item" from this pre-defined list?

 

Descripcion.png

 

 

I will get the Description of each item of the list.
Is it possible with C#?

 

 

Thank you!

1 REPLY 1
Message 2 of 2
smithmat
in reply to: Denis99

Once you get a NumSchme object back from the Vault server (by calling a method like DocumentService.GetNumberingSchemesByType), you can:

1. Get a NumSchmField object by accessing the FieldArray property on NumSchm.

2. The NumSchmField has a FieldTyp property of type FieldType.

3. In the case that this FieldType is of PredefinedList, then you can

4. Cast the NumSchmField to the derived class PredefListField.

5. The PredefListField class has a CodeArray property which is an array of CodeWord objects.

6. The CodeWord has a Descr property (which is a string) which corresponds to the description in your image.

 

Hope that helps,

- Matt

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report