Quantcast
Channel: PTC Community : Document List - All Communities
Viewing all articles
Browse latest Browse all 1247

working "copy name" mapkey!

$
0
0

When you want to add a part to an assembly, you can browse for it or fill in this part's name.

The problem with this is that you must know what you are looking for. In my experience in many cases its easier to place the name of a part to the clipboard when it's still open and use this when adding this part to an assembly etc.

 

When you want to create a simple mapkey which copies the name of a part/asm you have open, you are going to fail because for some reason this doesnt work.

 

I overcome the "copy name" problem by creating a mapkey which does the following:

 

first create a log-file which contains the name of the current part in the working directory.

Then a batch file with DOS script copies this name to memory and then the log-file is deleted.

 

Im sure you can do this even more efficient with Pro/Toolkit but I'm not familiar with and I dont know why PTC does not just program these mapkeys themselves.

 

 

Do the following steps:

 

1.

find the path of your working directory (in this case I used "C:\working-directory") and open config.pro with notepad (right mouseclick --> open with..)

 

2.

paste the following lines in config.pro, replace "C:\working-directory\" with your own path and save.

 

mapkey cc ~ Command `ProCmdInfoAuditTrail` ;#FILE;\

mapkey(continued) @SYSTEMC:\\working-directory\\clipboard.bat;\

mapkey(continued) @SYSTEMdel C:\\working-directory\\modiflist.inf.*;

 

3.

paste clipboard.bat in your working directory. Open clipboard.bat with notepad (right mouseclick --> EDIT) and replace "C:\working-directory\" with your own path and save.

 

4. restart CREO 2.0. The mapkey is activated by pressing "cc" or you can add an Icon that activates the mapkey.

 

Works like a charm on my system, but I cant guarantee that is works on other machines.


Viewing all articles
Browse latest Browse all 1247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>