Okay, I've got a question concerning JLink. Are you able to run a mapkey through JLink, and if so how?
What I would like to do is run a mapkey through JLink so that I can output a 3D PDF. I want to be able to do a lot at once and/or be able to do it from Intralink without too much intervention.
Any help will be appreciated.
> Are you able to run a mapkey through JLink, and if so how?
Mapkeys can be used, but can be tricky to implement when it comes to the Pro/E API's.
As Bjarne mentioned, if you are using the typical synchronous application, the macro is
not executed until control is returned to Pro/E (i.e. all of your code is done and the
user can make menu picks). Trying to mix code and mapkeys together will make your
program really, really complicated, but it can be done.
On the other hand, asynchronous applications execute their mapkey sequences immediately,
without having to wait for control to return to Pro/E. However, async apps don't get
started with Pro/E automatically making them slightly more difficult to implement for
end users. I can provide you with an example asynchronous app that can play a macro if
If you use the same syntax for embedding a mapkey within a mapkey, you can use that in
your application. For example if your mapkey is called "abc", then this would execute
the mapkey in a J-Link application (same concept works for the other API's):
One benefit to this approach is that the mapkey content is managed by a config.pro file,
not by your application. One drawback is that you cannot change the sequence on the fly
as Bjarne is doing with some of his stuff. Whether this is useful depends on what you're
trying to do.
> What I would like to do is run a mapkey through JLink so that I can output a 3D PDF.
> I want to be able to do a lot at once and/or be able to do it from Intralink without
> too much intervention.
If you're using Intralink 3.x, you might want to consider using trail files, because the
execution can be automated more directly. Trail files and mapkeys are essentially
identical with some formatting differences.
Here's an example for customizing trail files on the fly in Java with Intralink Scripting:
Visit My CAD/PDM AutomationBlog
Or, Subscribe to My CAD/PDM Automation Blog by Email