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

Open drawing of active part

Newbie

Open drawing of active part

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.

16 REPLIES 16

Re: Open drawing of active part

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

Re: Open drawing of active part

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

Re: Open drawing of active part

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.

Re: Open drawing of active part

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.

Re: Open drawing of active part

@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.

Re: Open drawing of active part

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.

Re: Open drawing of active part

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.

Re: Open drawing of active part

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

Re: Open drawing of active part

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 ?

Announcements