J-Link
J-Link
(OP)
I am working toward the development of a J-link application. I would like to have this application open every file in session and run a macro on each of these files. Before I get started, I wondered if anyone out there had any suggestions, or better yet code to share.





RE: J-Link
I don't know anything about Macros but this is one way to get all the models in session ...
public void runMacros(Session proeSession) {
Model md;
Models mds;
try{
mds = proeSession.ListModels();
for (int i=0;i<mds.getarraysize();i++){
md = mds.get(i);
proeSession.RunMacro("Your macro" ??? );
} catch (jxthrowable x){}
}
//matte
RE: J-Link
RE: J-Link
As I said I haven't worked anything with macros and I just assumed that you need to send some modelparameters in to your macro...
This script just gives you handles to all models in session.
//matte
RE: J-Link