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

Creo 2.0 - Open a drawing from active part?

SOLVED
Highlighted

Re: Creo 2.0 - Open a drawing from active part?

Hello Martin

thanks again but unfortunatly this is not fully working for us , like for you.

but I founded a workarround

I have opened first, on a new session, a drawing, and saved the trail file in a text file (open_drawing.txt).

 

when I have an assembly opened, I founded then the way to extract from the trail file the part number of the last selected item (in the graphic windows or in the tree)

for axample

if I select a part in the graphic windows i need to find the last line in the trail file containing

!%CIShowing surface created by feature 5 (Creo Geometry), model xxxxxx.

if I select the part in the tree I will I have to find the last line containing

!xxxxxxx.PRT

if I select an assembly in the tree I will I have to find the last line containing

!xxxxxxx.ASM

 

using vbscript I am able to read this trail,  find the last line whatever I select in the graphic windows or the tree, and than put this part number in the "open_drawing.txt"

 

so my mapkey now is in fact 2 mapkeys

the first one extract the part number xxxxxxx (last line containg  !xxxxxxx.PRT or !xxxxxxx.ASM or !%CIShowing )

the second mapkey run the "play trail file" feature  and call the "open_drawing.txt"

 

work like a charm!

We still use your mapkey to open the related drawing of the activate part, this will be maybe my next challenge to make this possible  in vbapi (maybe) :-)

 

thanks again

 

Regards