Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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