cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Create a new file in workspace with weblink

Mat
15-Moonstone
15-Moonstone

Create a new file in workspace with weblink

Hi there,

I already tried this, to create a new file:

var Model_descriptor = pfcCreate("pfcModelDescriptor").CreateFromFileName("mmns_part_solid.prt");

var tempMdl = oSession.RetrieveModel(Model_descriptor);

tempMdl.Copy(filename + createfile_types[type], null);

Creo creates that file. But unfortunatelly, Creo throws an error at line 3 "pfcExceptions::XToolkitFound / Code:0"

Sure, I could embrace that line with try/catch. But am I missing something here?

0 REPLIES 0
Announcements


Top Tags