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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Run macro via Weblink

RL_9925624
4-Participant

Run macro via Weblink

Hi All,

 

I would like to run specific mapkeys via Weblink in Creo 9, but unfortunately nothing seems to work.

 

Here is an example from my code:

 

function WlModelRunMacro ()
{
var MacroString= "~ Command `ProCmdModelNew`";
mGlob = pfcCreate("MpfcCOMGlobal");
var oSession = mGlob.GetProESession();

oSession.RunMacro(MacroString);
}

 

I have enabled web_enable_javascript option in my config file.

 

If you could run macros in Creo through weblink, could you please help me with a right syntax?

 

Thank you for your help,

Richard Lukacs

1 ACCEPTED SOLUTION

Accepted Solutions
RL_9925624
4-Participant
(To:RL_9925624)

Thank you all, the problem was that Creo 9 does not support internet explorer anymore.

View solution in original post

5 REPLIES 5

Hi,

did you open Case at PTC Support ?


Martin Hanák

Hi Martin,

 

not yet. Should I open a support ticket?

 

Thanks,

Richard

YES, you should open a support ticket.


Martin Hanák

Looks like you are missing the semicolon at the end of the macro string.

You have:

var MacroString= "~ Command `ProCmdModelNew`";

 

Should be:

var MacroString= "~ Command `ProCmdModelNew`;";

RL_9925624
4-Participant
(To:RL_9925624)

Thank you all, the problem was that Creo 9 does not support internet explorer anymore.

Top Tags