Skip to main content
1-Visitor
March 29, 2019
Solved

quickly open drawing

  • March 29, 2019
  • 3 replies
  • 11191 views

Is there a way to quickly open a drawing of the part you have on screen?  Seems silly to have to actually go find the drawing to open it.  would be nice if there was a button or mapkey.

 

Creo 4.0 and Windchill

Best answer by lhoogeveen

Check out this other discussion for Mapkey Writing/Editing Tips. On page 2, I just posted Creo 4 M040 mapkeys for open drawing with same name and create drawing with same name.

3 replies

KenFarley
21-Topaz II
March 29, 2019

No. For the reasons I gave in this discussion:

Drawing/Model relationship discussion

In brief, there's nothing stored in a part that identifies "the drawing". A part can, in fact, be used in multiple drawings and a drawing can have any number of associated parts/assemblies.

23-Emerald III
March 29, 2019

There is a discussion here https://community.ptc.com/t5/Part-Modeling/Creo-2-0-Open-a-drawing-from-active-part/td-p/260926 where a user made an autoIT script to open a drawing from the part IF the drawing has exactly the same name as the model.

As Ken says, there is no out of the box functionality for this.

1-Visitor
March 29, 2019

I saw that and tried it but we use Windchill and I could not get it to work.  I am new to Creo, used NX for past 20 years.  I am having a hard time with the inefficiencies of creo compared to what I am used to.

23-Emerald III
March 29, 2019

Step 1, you'll have to forget how things are done in NX, that comparison will drive you bonkers. Some of concept stuff still applies but the actual work is pretty different.

It's a very different software. I used NX a little and SDRC IDEAS a little. They were foreign to me. 

There are others here in the forum that have gone thru that transition, the weak ones don't make it Smiley Very Happy

Ask questions, we can help.

17-Peridot
April 1, 2019

Check out Jose_Costa's post where he attached the mapkeys.pro.zip file in this discussion. Those mapkeys can be used to open drawing with same name, create new drawing with same name, create new DXF with same name. It's a pretty powerful little hack. Creo 6 has a new option to use the part as the drawing name so the new drawing/dxf with same name mapkeys might not be quite as useful long term. It works with Windchill. As usual with mapkeys, you may have to test/validate with your specific build of Creo.

 

https://community.ptc.com/t5/Detailing-MBD-MBE/Map-key-to-open-drawing-with-the-same-name-as-the-model/td-p/242212

1-Visitor
April 1, 2019

Thanks for your reply.  I tried that mapkey and all it did was open the first drawing in my workspace.  not the drawing of the active part.  Below is the mapkey i put in my config.pro.  I am sure I need to modify this somehow but I am not sure what. haha

 

mapkey od @MAPKEY_NAMEOpens Draw with same name ; @MAPKEY_LABELOpens Draw with same name ;\
mapkey(continued) %>partname1;%load;~ Command `ProCmdModelOpen` ;\
mapkey(continued) ~ Open `file_open` `Type`;~ Close `file_open` `Type`;\
mapkey(continued) ~ Select `file_open` `Type` 1 `db_4`; %partname;\
mapkey(continued) ~ Command `ProFileSelPushOpen@context_dlg_open_cmd`;

 

 

17-Peridot
April 1, 2019

You will need to paste the other mapkeys being referenced by the OD mapkey into your config as well (you can call other mapkeys with %). The OD mapkey calls >partname1 and load mapkey. Don't worry about the partname mapkey called near the end... it's being dynamically created by the >partname1/load mapkeys.