cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Translate the entire conversation x

External Enum Value List

EC_10581209
12-Amethyst

External Enum Value List

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

 

10 REPLIES 10

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
PTC

@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

 

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

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
22-Sapphire III
(To:EC_10581209)

EC_10581209
12-Amethyst
(To:Fadel)

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

Fadel
22-Sapphire III
(To:EC_10581209)

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 .

Fede
EC_10581209
12-Amethyst
(To:Fadel)

Yes of course that would be very helpful I am very interested in this topic, how can we arrange an appointment?

EC_10581209
12-Amethyst
(To:Fadel)

is it possible?

Fadel
22-Sapphire III
(To:EC_10581209)

Hi , as mentioned I'm an expert in APIs , Please use support assistant and provide as much details as possible such as error messages, steps followed, log files, keywords, etc to allow the engineer assigned to it to perform a quality first contact and assist you further .

Fede
Announcements

Top Tags