How to create mapkey - is it possible?
How to create mapkey - is it possible?
(OP)
Hi,
I want to create mapkey, which will open the drawings related to part(the same name).
For example, I have an active workspace "aaa", including the workspace I have a lot of files .prt , .drw. .asm.
I open the file .prt (for example F0001.prt), now wants to open a file .drw (F0001.drw), in this moment I must to click open, and I have to look for a file F0001.drw, it is annoying and takes a long time.
How to create mapkey, which opened to all .drw with the same name as the .prt which at the moment I opened, it is possible?
I want to create mapkey, which will open the drawings related to part(the same name).
For example, I have an active workspace "aaa", including the workspace I have a lot of files .prt , .drw. .asm.
I open the file .prt (for example F0001.prt), now wants to open a file .drw (F0001.drw), in this moment I must to click open, and I have to look for a file F0001.drw, it is annoying and takes a long time.
How to create mapkey, which opened to all .drw with the same name as the .prt which at the moment I opened, it is possible?





RE: How to create mapkey - is it possible?
RE: How to create mapkey - is it possible?
But when I am working with a large ".asm" and change something in parts, then open. prt of the tree. asm, because it is simpler and faster, and then must look for .drw files.
I tried to do something like this:
########################################################
mapkey open ~ Select `main_dlg_cur` `MenuBar1`1 `File`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `File.psh_rename`;~ Activate `rename` `Cancel`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdModelOpen.file`;\
mapkey(continued) ~ Input `file_open` `Inputname` `0001`;\
mapkey(continued) ~ Update `file_open` `Inputname` `0001*.drw`;\
mapkey(continued) ~ Activate `file_open` `Inputname`;
#########################################################
I click FILE->RENAME (copy Name) ->CANCEL
FILE->OPEN->paste Name (the name which I previously copied)
and add *.drw
This works, but still opens the same drawings 0001stdbend.drw .
Maybe someone knows how to make paste, always name active. prt?
RE: How to create mapkey - is it possible?
htt