Skip to main content
1-Visitor
January 17, 2011
Question

Open drawing of active part

  • January 17, 2011
  • 7 replies
  • 14259 views

Is there a way in Wildfire 5.0 to open a drawing of the active part or assembly? In the paste, it required an external visual basic script.


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.

7 replies

1-Visitor
January 19, 2011

How can I get this external visual basic script. We are working with Wildfire 4.0 and have the same problems.

1-Visitor
January 20, 2011

Alex, can you give more details as to what you want to do?

1-Visitor
January 20, 2011

Kevin, I am looking for an easy way to open a drawing (.drw) file of the same name as the active part or assembly. For example, if I have "crankshaft.prt" open and active, I want to open "crankshaft.drw". In solidworks, you can right click on the part name in the feature tree and select "Open Drawing". I can't seem to find anything similar in WF5 and it appears that writing a mapkey to do this requires the use of an external VB script.

1-Visitor
January 20, 2011

That sounds tricky. That would definitely be a good function to have. For what it's worth, the best shortcut I can think of would be a mapkey that initiates File>Open>and then selects .drw from the drop down menu for file types. That way you can quickly see all drawings in the working directory.

If anybody has VB script for Pro/e I would be interested in seeing it. Thanks.

1-Visitor
January 21, 2011

@Kevin: The method suggested by you sounds very usual.

@Alex: Yes, Pro/E can be customized to create userdefined icons and shortcuts. First method is creating macros which is very common. Secondly, the Pro/E can be incorporated with high end customized options(shortcuts) by coding in VB Script and creating DLL(Dynamic Linked Library) file. Even i'm keen to learn that but its messy to learn creation of DLL file coding language being an mech engineer. Any Software Engineer out here should help. Thanks.

1-Visitor
January 21, 2011

Basavesh, my suggestion was given "for what its worth", meaning that I wish I could offer a better solution. As usual or as common as my suggestion may seem, there is no value in you pointing it out. If your intention was not to be condescending then forgive this reply.

13-Aquamarine
January 21, 2011

If your drawings have the same name as the part they are documenting, it could easily be achieved with a Web.Link or JLink app. (Both APIs are included with Foundation XE license). If they do not have the same name it is not possible to know which drawings are referencing the part unless you are using PDMLink e.g. Even on creation of drawings, both of the APIs can be used to first query the name of a part, and using that to create the drawing automatically with the same name.

1-Visitor
January 24, 2011

Tom, That is exactly what I am trying to do. I was hoping to find an example script to start from.

13-Aquamarine
January 24, 2011

No problem, in its 'basic' form this would only contain a few lines of code. I will look for an example program. Are you familiar with setting up a Web.Link or JLink app ?

1-Visitor
September 14, 2012

Alex Duggan

is this still wanted? I have a Web.Link script which opens a drawing with the same name as model

Regards

Juergen

1-Visitor
September 25, 2012

Juergen,

Yes! Do you mind sharing your script?

1-Visitor
September 25, 2012

Hello Dan

I attached a zip-File

So far I tested it only under WF 4.0 - should also work with Creo

Works alos in other direction from drawing --> to model

Best Regards

Juergen

3-Newcomer
April 29, 2013

Dear Woerner,

how can we install or Run file

Please elaborate.

regards

kunjan patel

1-Visitor
April 29, 2013

Dear kunjan patel

extract the Zip-file. You will get a folder "Open_Model_Drawing" with three subfolders. One of them is "HTML" which contains the file "Open_Drawing_From_Model.html"

Click the file with Left Mouse Butten (keep the butten down) and move it over your Creo/Wildfire Window, there drop the file. Part or drawing will be opened

Best Regards

Juergen

1-Visitor
May 6, 2013

Hi!

I created mapkeys in Creo 2 for opening drawing (with same name as part) of active part / assembly and one for creating new drawing with same name as active part/asm.


It is simple code in creo config.pro file and some in DOS file.

If somebody needs them, I can send this (I don't want to share it on internet yet; it is not tested enough and via e-mail I hope that I will get fedback about bugs - now after some tests works perfect ), my e-mail address :

em.jpg