Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

J-Link

Status
Not open for further replies.

jwshelt

Mechanical
Jun 4, 2002
5
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.
 
Replies continue below

Recommended for you

Hi!
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(&quot;Your macro&quot; ??? );
} catch (jxthrowable x){}
}

//matte
 
matte, what exactly does your script do? I see that you are putting models into an array, but.......
 
Sorry if I misunderstood you!
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
 
matte, I am trying to run a mapkey on every component in an assembly with out opening each component seperately. What you had provided is a start in the right direction, thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor