Example code to Save As (Save a Copy) an existing assembly using VB API
Hello,
There is an example code using JLINK available here: https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS153609&art_lang=en&posno=1&q=vb%20api%20assembly%20save%20as&…
But I am looking for the VB.net version. especially the VB.net version of the following portion:
in VB API, "model.Backup" does not seem to work correctly, and "model.copy/copyandretrieve" don't include the part files.
Model model = session.RetrieveModelWithOpts(modelDescriptor, pfcSession.RetrieveModelOptions_Create());
ModelDescriptor md = model.GetDescr();
is there an equivalent to "GetDescr()" in VB API?
Does "model.Backup(...)" works correctly in your VB.net code?
Stephane
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

