Skip to main content
1-Visitor
March 25, 2015
Solved

mapkey to delete log files during dxf export

  • March 25, 2015
  • 13 replies
  • 5718 views

Hello,

 

I would like to get rid of log files generated during dxf export.

I found a PROE discusion where there is a mapkey created for this purpose: mapkey(continued) @SYSTEMdel c:\\proe_dir\\*_dxf__out.*; but it does not work for me.

Also I dont know how to change the path to my current working directory.

 

the whole mapkey looks like following:

 

mapkey dxf @MAPKEY_NAMEExport do DXF;@MAPKEY_LABELDXF;\

mapkey(continued) ~ Command `ProCmdEnvHidden` 1;~ Command `ProCmdModelSaveAs`

mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\

mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_137`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `export_2d_dlg` `OK_Button`;\

mapkey(continued) ~ Activate `UI Message Dialog` `ok`;

mapkey(continued) @SYSTEMdel c:\\proe_dir\\*_dxf__out.*;

 

thanks for help in advance

 

T.


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.
Best answer by MartinHanak

Tomas,

mapkey cannot work, because it removes files from c:\proe_dir directory.

Your working directory is c:\Users\hlavinka\Documents\473-4430\2, try the following mapkey.

mapkey ddd @MAPKEY_LABELDelete dxf logs;\

mapkey(continued) @SYSTEMdel c:\\Users\\hlavinka\\Documents\\473-44\

mapkey(continued) 30\\2\\*_dxf__out.*;

The mapkey is not universal !!!

Martin Hanak

13 replies

24-Ruby III
March 25, 2015

Tomas,

mapkey ddd @MAPKEY_LABELDelete dxf logs;\

mapkey(continued) @SYSTEMdel c:\\proe_dir\\*_dxf__out.*;

ddd ... mapkey key sequence

c:\\proe_dir ... corresponds with c:\proe_dir (in mapkey you have to used doubled backslashes)

The length of mapkey line must not exceed 80 characters. If the path to your working directory is long, then you have to split second line into two ones.

Martin Hanak

thlavinka1-VisitorAuthor
1-Visitor
March 25, 2015

Hi Martin,

I tried it and seems it does not work

1.jpg

24-Ruby III
March 25, 2015

Tomas,

mapkey cannot work, because it removes files from c:\proe_dir directory.

Your working directory is c:\Users\hlavinka\Documents\473-4430\2, try the following mapkey.

mapkey ddd @MAPKEY_LABELDelete dxf logs;\

mapkey(continued) @SYSTEMdel c:\\Users\\hlavinka\\Documents\\473-44\

mapkey(continued) 30\\2\\*_dxf__out.*;

The mapkey is not universal !!!

Martin Hanak