Skip to main content
10-Marble
October 12, 2022
Solved

Run macro via Weblink

  • October 12, 2022
  • 3 replies
  • 2399 views

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

Best answer by RL_9925624

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

3 replies

24-Ruby III
October 12, 2022

Hi,

did you open Case at PTC Support ?

10-Marble
October 12, 2022

Hi Martin,

 

not yet. Should I open a support ticket?

 

Thanks,

Richard

24-Ruby III
October 12, 2022

YES, you should open a support ticket.

20-Turquoise
October 12, 2022

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_992562410-MarbleAuthorAnswer
10-Marble
October 13, 2022

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