Create Variant Specification by API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Create Variant Specification by API
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?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Lukasz1
You have to add the library from the Windchill installation to your IDE
here is example of my configuration in inteliJIdea
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What do you mean by 'VariantSpecLoaderHelper' are not present in the Windchill installation .
What error are you getting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It is exactly what I need, but I am missing the library (.jar) where the class (VariantSpecLoaderHelper) can be found.
Can you help me to find it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi ,
see below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Lukasz1
You have to add the library from the Windchill installation to your IDE
here is example of my configuration in inteliJIdea
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The knowledgeable base says there is no supported API to do this:
