J-Link - running mapkey recursively
I have a J-Link program which recursively searches and retrieves all components in an assembly. I have problems to execute a mapkey on each component after its retrieval. It appears the mapkey runs multiple times but only on the LAST component found and not for each component. I've tried creating the mapkey on-the-fly and then executing it with RunMacro(), but to no avail (see below). Could the problem be that the mapkey loaded with Session.RunMacro() gets executed when control is first returned to Pro/ENGINEER?
try {
String macrostring = "mapkey aw @MAPKEY_LABELActivate Workspace";+
curSession.RunMacro(macrostring);
}
m.Save( );
Regards
David Rodriguez
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.

