cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a button to quickly open the drawing for an on-screen model/assembly ?

SOLVED

Is there a button to quickly open the drawing for an on-screen model/assembly ?


I wonder were there is a button or a way to open the corresponding drawing for a model or assembly ? The other way around is easy as in the drawing you have on the left bottom a component tree to open the component but not reversed. This operation, retype the number of the drawing, is done several times a day by many designers and would be a real time saver.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Hi,

2 years ago I created AutoIt script, which can be launched by mapkey dd - see attachments.

Installation:

  • unzip Open_Model_Drawing_AutoIt.zip file to D:\PTC directory
  • copy mapkey saved in my config.pro file to yours
  • launch Creo 2 or Creo 3
  • open model
  • type dd
  • Creo opens model's drawing

The script will work properly, if:

  • drawing name = model name
  • drawing is saved in working directory -or- is accesible via SEARCH_PATH config.pro option
  • is used in English version of Creo

MH


Martin Hanák
13 REPLIES 13

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Hi,

2 years ago I created AutoIt script, which can be launched by mapkey dd - see attachments.

Installation:

  • unzip Open_Model_Drawing_AutoIt.zip file to D:\PTC directory
  • copy mapkey saved in my config.pro file to yours
  • launch Creo 2 or Creo 3
  • open model
  • type dd
  • Creo opens model's drawing

The script will work properly, if:

  • drawing name = model name
  • drawing is saved in working directory -or- is accesible via SEARCH_PATH config.pro option
  • is used in English version of Creo

MH


Martin Hanák

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Hi Martin,

I tested this and this works well also on Pro/E 5. Thank you very much, this saved me a day or 2 work. This should be an ou-of-the-box functionality in Creo.
Regards, Bernard

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Martin, if you don't mind me asking, what API did you use to make this?

Thanks,

Geoff Baxter

www.baxsaa.com

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Hi,

I used AutoIt ... https://www.autoitscript.com/

MH


Martin Hanák

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Hello Martin,

We do see some unintended behaviour; an extra zero or a double character or a very weird case here below. I guess due to the fact it is Pro/E ?
button.png

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Hi Bernard,


I tested the script with Creo Elements/Pro 5.0 M280 64-bit in local disk directory successfully.


I don't have access to Windchill, therefore I cannot simulate your situation - i.e. working in workspace (MITAS on WT).


In attached file you can find script modified for testing purposes. When you run it, it will show you what it finds in window title block. Replace original exe file with new one and give it a try ...


MH


Martin Hanák

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Very Cool! The only issue I am stuck on is when path has a space (i.e C:\\Program Files\\PTC\\Open_Model_Drawing_AutoIt\\open_drawing_cr2.exe;

I have tried single quotes, double quotes, an underscore and even %20. None worked.

Thanks!

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Hi,

in Windows directories have long names and short names. You can enter dir /x command to see short names (max. 8 characters) which does not contain spaces.

Then you can use short name in mapkey definition. See example below:

mapkey dd @SYSTEMstart D:\\PROGRA~1\\Open_Model_Drawing_AutoIt\\open_drawing_cr2.exe;

MH


Martin Hanák

Re: Is there a button to quickly open the drawing for an on-screen model/assembly ?

Thanks. That's a great tip!

OK since you are on a roll, on my laptop it doesn't matter if drawing is open or not, the script always works. On another persons laptop he gets prompt to rename file due to file already in session. I looked through config options and don't see anything to turn this off. Not sure why two laptops would work differently.