Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

mapkey help for a total newbie?

jmason2k7

New member
Greetings,


I really hate to ask stupid questions, but I've had a terrible time trying to find information on Pro/E, at least when it comes to my problem.


I'll warn you that I'm totally new to Pro/E, aside from a very (VERY) basic tutorial. To be honest, I'm far more of a computer person than I am an engineer. But, I've worked with C, C++, Java and VB.


My problem is this:
We have a set of text files with parameters for an object. We want to run an analysis on each object. A cowroker of mine recorded a mapkey that could read in the file, run the analysis and export the results. However, we want to automate this so that we can read a lot (read "hundreds or thousands") of cases with no user interaction. We could just make one big mapkey to run the analysis on each file, however... (looking for the right words) the mapkey doesn't wait for an analysis to finish before it starts another analysis. So, if we do much more than three, the system resources vanish and the PC grinds to a snail's pace.


Is there a way we could modify the mapkey so that it waits for an analysis to finish before starting another?
Or, would there be a better way to do so with PRO/TOOLKIT or J-Link?


Thanks in advace!
 
You can definitely set model parameter value from a text file with Pro/TOOLKIT but I have never interrogated analysis features using Pro/TOOLKIT. However I would suggest reading the Pro/TOOLKIT API Wizard under User's Guide->External Analyses and Analysis Features. This section describes the Pro/TOOLKIT functionality when it comes to analysis features. More specifically, look towards the bottom of the page in the Visiting External Analyses Features. There it describes how to visit existing analysis features that you can then get information about after the model regenerates (and the analysis is performed).
 
Im not really sure if I understood what you wanted to do, but mapkeys are not really programmable as such, but one way to get around this is to call a VBScript instead in the mapkey that does have more intelligence. But then you have no influence on Pro/E command anymore. But if a VBScript can be made that wait's for some sort of output from the analysis (like a output file or something) you can use the VBScript to do the pause, and so on....
 

Sponsor

Back
Top