Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

Create Variant Specification by API

Lukasz1
11-Garnet

Create Variant Specification by API

Hello,
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.23
I would like to programmatically create Variant Specification. As far as I can see in the documentation such customization should be possible.
e.g.
Sample Code for VariantLoadNavCriteriaBean API but the problem is I cannot find
VariantSpecLoaderHelper.service.loadVariantSpecs(beans, partConfigSpecBeans, atoConfigSpecBeans);
The classes for 'VariantSpecLoaderHelper' are not present in the Windchill installation and I do have license and I am able to manually create Variant Specification in the system.
Can you help me to resolve this issue?
ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire II
(To:Lukasz1)

Hi @Lukasz1 

You have to add the library from the Windchill installation to your IDE

here is example of my configuration in inteliJIdea

HelesicPetr_0-1742296932473.png

PS:: I don't have Windchill installation on my IDE client. I have just a copy of the needed libraries from the Windchill structure of the correct version.

PetrH

View solution in original post

7 REPLIES 7
Fadel
22-Sapphire II
(To:Lukasz1)

What do you mean by  'VariantSpecLoaderHelper' are not present in the Windchill installation .

What error are you getting 

Fede
Lukasz1
11-Garnet
(To:Fadel)

I've seen the Loading Loading Variant Specifications Using an API , but I cannot find the corresponding helper method which is used in the snipped.

VariantSpecLoaderHelper.service.loadVariantSpecs(beans, partConfigSpecBeans, atoConfigSpecBeans);

 Can you help me find it?

Fadel
22-Sapphire II
(To:Lukasz1)

can you take a look at https://www.ptc.com/en/support/article/CS273636 

Fede
Lukasz1
11-Garnet
(To:Fadel)

It is exactly what I need, but I am missing the library (.jar) where the class (VariantSpecLoaderHelper) can be found. 

Lukasz1_0-1742285734685.png

Can you help me to find it?

Fadel
22-Sapphire II
(To:Lukasz1)

Hi , 

 

see below 

 

Fadel_0-1742286765072.png

 

Fede
HelesicPetr
22-Sapphire II
(To:Lukasz1)

Hi @Lukasz1 

You have to add the library from the Windchill installation to your IDE

here is example of my configuration in inteliJIdea

HelesicPetr_0-1742296932473.png

PS:: I don't have Windchill installation on my IDE client. I have just a copy of the needed libraries from the Windchill structure of the correct version.

PetrH

TomU
23-Emerald IV
(To:Lukasz1)

Announcements


Top Tags