Skip to main content
1-Visitor
April 3, 2008
Question

Run mapkey from a trail file

  • April 3, 2008
  • 2 replies
  • 3170 views
OK, I've searched the archives long enough with no solution.

How do you run a mapkey from a trail file?

Vaughn McDaniel III
CAD/PDM Administrator
Windsor Industries
A member of Kärcher Floor Care
Englewood, CO
303.762.1800 x187

    2 replies

    vmcdaniel1-VisitorAuthor
    1-Visitor
    April 4, 2008
    Is there are context I can use in a trail file to call a mapkey? e.g
    #<mapkey_name>.
    Or am i stuck putting all the commands in the trail file.

    Vaughn McDaniel III
    CAD/PDM Administrator
    Windsor Industries
    A member of Kärcher Floor Care
    Englewood, CO
    303.762.1800 x187




    "Vaughn McDaniel" <->
    04/03/2008 10:54 AM
    Please respond to
    "Vaughn McDaniel" <->


    To
    -
    cc

    Subject
    [proecad] - Run mapkey from a trail file







    OK, I've searched the archives long enough with no solution.

    How do you run a mapkey from a trail file?

    Vaughn McDaniel III
    CAD/PDM Administrator
    Windsor Industries
    A member of Kärcher Floor Care
    Englewood, CO
    303.762.1800 x187
    ----------
    21-Topaz II
    April 4, 2008
    This trail file does nothing but run the mapkey 'lbd'. It's from 2001, but still works up to WF3. I haven't tried WF4 yet.

    I use this to run a specific mapkey (loading a specific config file) at Pro|E launch. I've made several copies of this and simple changed the 'lbd' to another mapkey sequence and it runs just fine.

    !trail file version No. 1151
    !Pro/ENGINEER TM 2001 (c) 1988-2001 by Parametric Technology Corporation All Rights Reserved.
    ~ Select `main_dlg_cur` `MenuBar1` \
    1 `Utilities`
    ~ Close `main_dlg_cur` `MenuBar1`
    ~ Activate `main_dlg_cur` `Utilities.psh_util_macros`
    ~ Select `mapkey_main` `list_mapkeys` \
    1 `lbd`
    ~ Activate `mapkey_main` `RunButton`

    Doug Schaefer
    1-Visitor
    April 18, 2016

    Doug I am trying to create a file open then run a mapkey from a batch file. When I do this I get a ton of extra stuff, not sure what I can delete and what I cant. Any suggestions?

    21-Topaz II
    April 18, 2016

    This is a very old post - note the original is dated 2008.

    That said, I'm still using this same method, and likely the same trail file.

    I created the trail file by starting a new session and typing the mapkey I want to run.  That's it, don't close Creo or do anything else.  Go to your trail file folder and find that trail file and copy it.  Then, you need this line in your batch file to run the trail file when you start Creo:

    start "" "path/to/parametric.exe" path/to/trail/file

    I hope that helps.