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 not working on a different compute

nuspam

New member
Hi, all.


I have company standard mapkeysin a master config file which gets copied when ProE is started every time.


I am an admin and I set up all mapkeys using my computer. All mapkeys worked perfectly.


When a user using a different computer (same license, same build M130, WF3), the mapkeys do not behave the same way. It picks different items. How can this happen? If I recreate the mapkey from the computer that was giving a problem, then it works fine. However, the new mapkey created would not work on my computer. I have not tried 3rd computer, but this seems so odd.


Can the computer H/W affect the way mapkey behaves? I don't think it's loading another config.pro from elsewhere. I feel pretty confident about that.


If anyone has experienced the same issue, please let me know how to fix it. Thank you.
Edited by: nuspam
 
I have had the same issue the problem is you need to stay away from icons. Instead of selecting the regen button, select edit, regenerate. The problem is that mostly everybody has a different config.win. Stick with menu commands to make this work or make everybody use the same config.win (not recommended)


Omar
 
I thought that was the problem initially, so I tried the same mapkeys using the same config.win. It still failed. Anything else I could be doing wrong?
 
It simply allows the user to use a custom pull down menu and start a drawing, using a drawing template file & format.


Here's the mapkey...


mapkey drw_cprt @MAPKEY_LABELcreate new c-size part drawing;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `File`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;~ Activate `main_dlg_cur` `File.psh_new`;\
mapkey(continued) ~ Select `new` `Type`1 `Drawing`;\
mapkey(continued) @MANUAL_PAUSEEnter drawing name, then click RESUME...;~ Activate `new` `OK`;\
mapkey(continued) ~ FocusIn `dwg_create` `inp_model_name`;~ Activate `dwg_create` `psh_browse`;\
mapkey(continued) ~ Open `file_open` `Ph_path.Path`;~ Close `file_open` `Ph_path.Path`;\
mapkey(continued) ~ Select `file_open` `Ph_path.Path`1 `n:\\cad`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `vault`;\
mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist`1 `vault`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `Pro_stds`;\
mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist`1 `Pro_stds`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `start_files`;\
mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist`1 `start_files`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `startdraw_c.drw`;\
mapkey(continued) ~ Activate `file_open` `Open`;~ Activate `dwg_create` `psh_model_browse`;\
mapkey(continued) @MANUAL_PAUSESelect the model, then click RESUME...;\
mapkey(continued) ~ Activate `file_open` `Open`;~ FocusOut `dwg_create` `inp_template_name`;\
mapkey(continued) ~ Activate `dwg_create` `psh_ok`;~ Select `main_dlg_cur` `MenuBar1`1 `File`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `File.psh_page_setup`;\
mapkey(continued) ~ Select `pagesetup` `TblFormats`2 `1` `fmt`;\
mapkey(continued) ~ Open `pagesetup` `TblFormats_INPUT`;~ Close `pagesetup` `TblFormats_INPUT`;\
mapkey(continued) ~ Select `pagesetup` `TblFormats_INPUT`1 `Browse...`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `c_part.frm`;\
mapkey(continued) ~ Activate `file_open` `Open`;~ Activate `pagesetup` `OK`;


Thank you !!
 
The mapkey posted before is the one I had to redo using the user's computer, which doesn't work on my computer.


The mapkey is the original one that I created using my computer, which works fine, but not on the user's computer.


mapkey drw_cprt @MAPKEY_LABELcreate new c-size part drawing;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `File`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;~ Activate `main_dlg_cur` `File.psh_new`;\
mapkey(continued) ~ Select `new` `Type`1 `Drawing`;\
mapkey(continued) @MANUAL_PAUSEEnter drawing name, then click RESUME...;~ Activate `new` `OK`;\
mapkey(continued) ~ FocusIn `dwg_create` `inp_model_name`;~ Activate `dwg_create` `psh_browse`;\
mapkey(continued) ~ Open `file_open` `Ph_path.Path`;~ Close `file_open` `Ph_path.Path`;\
mapkey(continued) ~ Select `file_open` `Ph_path.Path`1 `n:\\cad`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `vault`;\
mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist`1 `vault`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `Pro_stds`;\
mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist`1 `Pro_stds`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `start_files`;\
mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist`1 `start_files`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `startdraw_c.drw`;\
mapkey(continued) ~ Activate `file_open` `Open`;~ Activate `dwg_create` `psh_model_browse`;\
mapkey(continued) @MANUAL_PAUSESelect the model, then click RESUME...;\
mapkey(continued) ~ Activate `file_open` `Open`;~ FocusOut `dwg_create` `inp_template_name`;\
mapkey(continued) ~ Activate `dwg_create` `psh_ok`;~ Select `main_dlg_cur` `MenuBar1`1 `File`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `File.psh_page_setup`;\
mapkey(continued) ~ Select `pagesetup` `TblFormats`2 `1` `fmt`;\
mapkey(continued) ~ Open `pagesetup` `TblFormats_INPUT`;~ Close `pagesetup` `TblFormats_INPUT`;\
mapkey(continued) ~ Select `pagesetup` `TblFormats_INPUT`1 `Browse...`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `c_part.frm`;\
mapkey(continued) ~ Activate `file_open` `Open`;~ Activate `pagesetup` `OK`;
 
I ask user to select the part in the mapkey. So, the user should be able to browse, then highlight the part.


However, the window looks for .drw file and doesn't even show .prt files. Therefore, the user can't even select.


When I try the first one one my computer, it does really crazy things. It picks a file I don't want automatically and doesn't even open the drawing. It says it can't find the file or something like that. I didn't pay much attention. Looks like it's missing the picks in the mapkey.


Anyway, thanks for the help.
 
What kind of promp handling did you set? Record keyboard input or pause for keyboard input. This option it selected when first creating a mapkey.
 
I pause for keyboard input when I ask the user to highlight the part.


I ran a diff on the two files. Disregard the working when asking info from the user.


The only differences are;


1.the capital N verses small n for the drive letter.


2. there is a whole line difference, ====> Activate `file_open` `Open`;~ FocusOut `dwg_create` `inp_template_name`;\ <==== isn't there in the new mapkey created using the user's computer.


See the attached file. The one on the right is the one created using my computer. The one on the left is the one created using the user's computer. Everything else is the same.


Does the capital "N" in the drive letter make a difference?2008-07-24_110510_diff.zip
 
No wonder i couldn't find any differences...You post the same mapkey twice...Let look into this. I will let you know my results.


Omar
 
can you tell me exactly what your doing. Im confused you say that you are creating a drawing with a format and template. Don't you have to choose on or the other.
 
Found the problem.


It's the drive letter !!!!!


I was able to duplicate the problem with by just changing the drive letter to small letter.


Wow... who would have known?


Now, I am not sure how to fix the problem. How do you make sure the ProE recognizes small drive letter and capital to be equal? I am sure the problem is caused by Windows, but ProE needs to be able to distinguish and move on.


Perhaps, this is a bug with WF3.
 
I am assuming that the drive letter is a server drive. All you have to do is to remap the drive and have the letter be the same (all cpu use N:\ or n:\). Do you need instructions on how to map the drive. Its not difficult to do it, you can do it from your cpu.


Omar
 
When I map it, how do I change the letter to read N verses n?


Windows doesn't seem to give me that option.
 
my machine WinXP 32 bit


the other the same. my machine always maps to N.


For some reason, the user machine maps to n.


this may be out of context of this forum. perhaps, it would be easier to convert


the other machine so that it maps to N as it's supposed to. anyway, if you know how, that's great. Otherwise, I will get help from Microsoft. Wish me luck.
 

Sponsor

Articles From 3DCAD World

Back
Top