How to turn a trail file into mapkey, suppressing user interaction
I'd like to have a note in Creo 3, created by mapkey, carrying model information.
Typing the parameters into the edit box results in Creo replaying letter for letter,
when using txa or mapkey. Almost painful to watch. Therefore, I've created a file containing
all information and imported it. I've stripped the resulting trail file of all unnecessary
lines and created a txa file as follows:
~ Activate `main_dlg_cur` `page_Annotate_control_btn` 1
~ Command `ProCmdAOGalleryList` 1 `FLAT TO SCREEN`
~ Command `ProCmdDtlInsFreeNote`
-0.150000 0.820000 L 0 1 0
~ Command `ProCmdDtlTextFromFile`
~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`
~ Update `file_open` `Inputname` `e:\\Workcenter\\Creo3param.txt`
~ Activate `file_open` `Inputname`
~ Select `main_dlg_cur` `3DDtlAssyTree` 1 `node0`
Works fine, but I'd rather have a mapkey than a txa file:
mapkey bn @MAPKEY_NAMEinfo;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Annotate_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdAOGalleryList` 1 `FLAT TO SCREEN`;\
mapkey(continued) ~ Command `ProCmdDtlInsFreeNote` ;\
mapkey(continued) -0.150000 0.820000 L 0 1 0;\
mapkey(continued) ~ Command `ProCmdDtlTextFromFile` ;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\
mapkey(continued) ~ Update `file_open` `Inputname` `e:\\Workcenter\\Creo3param.txt`;\
mapkey(continued) ~ Activate `file_open` `Inputname`;\
mapkey(continued) ~ Select `main_dlg_cur` `3DDtlAssyTree` 1 `node0`;
Creo stops and asks for the placement, is it possible to turn this off?
Besides:
* txa files, once executed in Creo 3 ,can't be deleted within this session, just overwritten 
* Running a txa file that produces an error disables the function to load any other trail file.
TIA
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
