Skip to main content
12-Amethyst
June 17, 2025
Question

External Enum Value List

  • June 17, 2025
  • 3 replies
  • 1250 views

I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.1.0

I am trying to learn on external enum value list, need some Help with an example I'm working on. Trying to create an Attribute with a material of high concern and a propriate CAS number when I edit a WTPart, I've managed it with Global Enum and I want to explore it with External Enum value list

 

I've done it so far with Global Enums as a dropdown menu i select Substance Name and CAS number is selected automatically when i edit the part

EC_10581209_0-1750171015395.png

In the Manage Types I ve created reuired Attributes like Substance Name and the CAS number and put in an Enumareted Value List

EC_10581209_1-1750171352228.png

further in the cascading attributes i Ve created a rule where each substance is connected to its proper CAS number, that is no problem when it is few relations but exhausting when you have 500 substances so I'm thinking to do it with External Enumerated value list where i just create a xml file with the proper substances and CAS numbers which can be later easly edited

 

Thank you in advance

 

3 replies

Catalina
Community Moderator
June 17, 2025

Hi @EC_10581209 

 

Thank you for your question! 

 

I’d like to recommend to bring more details and context to your initial inquiry. For example:

  • Where are you planning to store or retrieve the external enum values from (e.g., XML file, database, external system)?
  • Have you already created the attribute in the Type and Attribute Manager, and are you trying to link it to the external enum now?
  • How do you want the CAS number to appear—automatically based on the selected material, or as a separate selectable field?

Please add screenshot(s) to better understand what you are trying to do in your process. 

 

Please refer to this guideline to make your questions more likely to receive a quick and useful answer. 

This will increase your chances to receive meaningful help from other Community members. 

 

Here's what a good question for Windchill looks like. 

 

Thank you for your participation and please let me know if you need further assistance! 

 

Best regards,

Catalina | PTC Community Moderator
18-Opal
June 17, 2025

@EC_10581209 , I think your best bet is to write a utility where you can add values to the Global Enumeration from a file.

I looked in my toolbox and found a few classes I'd written in 2016 for a company to do just that.

 

I recall them using it to populate enumerations.  It's bombproof.

I also recall figuring this out was not simple.  There's quite a bit going on under the hood.

 

You can either list all existing Global Enumerations

or

You can specify the Global Enumeration and a file (cvs or text) containing the values to add to the enumeration.

You can run in test mode too which does NOT store values to the dB or in save mode which will store values to the dB.

 

The help looks like this.

d_graham_0-1750188985089.png

 

12-Amethyst
June 18, 2025

did you write a java code for your tool, could you share?

18-Opal
June 18, 2025

Yes, as I stated I wrote it back in 2016.

I have hundreds of custom classes I've written for Windchill.  This is one of them.

Fadel
23-Emerald I
June 18, 2025
12-Amethyst
June 18, 2025

yeah i found that as well but it needs some clarification for me thou, do you have expertise in this field?

Fadel
23-Emerald I
June 18, 2025

Hi, I'm not expert in that field , but you can raise a call with TS if you have specific questions ,we will be glad to assist you .

Buiꓘa