Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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
In the Manage Types I ve created reuired Attributes like Substance Name and the CAS number and put in an Enumareted Value List
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
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:
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,
@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.
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.
Take a look at below , it requires implementing a EnumerationInfoProvider
yeah i found that as well but it needs some clarification for me thou, do you have expertise in this field?
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 .
Yes of course that would be very helpful I am very interested in this topic, how can we arrange an appointment?
is it possible?
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 .