Question
How to get a weblink "pfcBaseSession" object?
Creo Parametric 2.0 M130
I want to use weblink to get the current value of a config option.In my case I want to get the value
of start_model_dir.
According to CS122393 it should be as simple as using pfcBaseSession.GetConfigOption(). However when
I attempt to do this:
var startModelDir = pfcBaseSession.GetConfigOption("start_model_dir");
I get a javascript error:
pfcBaseSession is not defined
So obviously there is more to this than what CS122393 states.
Does anybody have a working code snippet that uses any of the pfcBaseSession weblink methods they
would be willing to share?
Thanks
--
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.
I want to use weblink to get the current value of a config option.In my case I want to get the value
of start_model_dir.
According to CS122393 it should be as simple as using pfcBaseSession.GetConfigOption(). However when
I attempt to do this:
var startModelDir = pfcBaseSession.GetConfigOption("start_model_dir");
I get a javascript error:
pfcBaseSession is not defined
So obviously there is more to this than what CS122393 states.
Does anybody have a working code snippet that uses any of the pfcBaseSession weblink methods they
would be willing to share?
Thanks
--
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.

