Version: Windchill 13.0
Use Case: I have created a custom API to create Option, Choices and option set by providing respective inputs. I have observed that, after creation, option has been persisted in Windchill with linked choices. Also newly created option set is associated with specific container. So far it is fine. However I am looking for custom API to link Option Set with Option. Can anyone help me on this ?
Description:
There is no supported API to do this https://www.ptc.com/en/support/article/CS451130 ,
you may use xml load see https://support.ptc.com/help/windchill/r13.1.1.0/en/index.html#page/Windchill_Help_Center/WCDataLoadGuide/WCDataLoad_OptionsLoaderDocInputLoadATOAddChoicesOptionSet.html#
Hello Fede,
Thank you very much for your reply. I understand that linking option with Option Set will not be supported. I am trying to link choices with existing option set, however it is not getting linked. I am checking out the option set and linking the choice something like below...
OptionSetMemberLink memberLink = OptionSetMemberLink.newOptionSetMemberLink(workingOptionSetCopy, choice);
PersistenceServerHelper.manager.insert(memberLink);
Any tips on this linking would really help me a lot.
Regards,
AKC
Hi @AKC,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,
Anurag
There's another example of this that's not supported in APIs but it's not related to Options and option sets.
However, it may be a way forward.
Edit the Option or Option Set subtype and create an object reference alias?
