Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

Create a new file in workspace with weblink

$
0
0

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?


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>