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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Batch production of STEP files for parts?

BrentDrysdale
12-Amethyst

Batch production of STEP files for parts?

Hi Folks,
I am completely unfamiliar with batch files for getting ProE to do stuff. I have a comment from our ECAD brethren that their latest release supports viewing of STEP files of parts so I am wondering if it is possible to run some sort of batch process that takes existing electro-mechanical part files and saves them as same name STEP files?

Many thanks in advance.

P.S. very little feedback so far on the internal PDF creation from WF4. I got one saying don't use it due to this sort of problem. Seems very strange that PTC does not have this PDF creation process nailed.
--
Regards, Brent Drysdale
Regards, Brent Drysdale
Mechanical Designer
Tait Electronics Ltd (www.taitworld.com)
New Zealand
Ph. +64 3 358 1093
This email, including any attachments, is only for the intended addressee. It is subject to copyright, confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.

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.
3 REPLIES 3

Hi Brent,



Once upon a time I wrote batch files inside a Unix-based Pro/E platform.



As of today, I can't remember even one line of code that I wrote.



To the best of my knowledge, the reason is that this functionality has



been taken over by Intralink and Windchill. If this is true, and you
have



one of them, you are more likely to get an answer on the [PROI] forum.



If you don't have them, you could always make a map key for it to ease
the pain.



Good luck,

Frederick Burke

Avionics Installations Engineer

Fire Scout VTUAV - Unmanned Systems

Northrop Grumman Corporation

858-618-7163

858-618-7186 (FAX)

-

I made this back in WF2 for dxf but should be the same now except select STEP:

Make a directory and back up all your files out of intra-link into it.

Copy all of your config files from your workspace into that folder also.

Open a DOS window in that directory and type:

C:\ptc\proeWildfire2\bin\pro_batch (or whatever your installation and level is).

Select File, Browse and pick all the drawings.

Select Preference, Set Preference. Plot as a PostScript.

Enter Batch001 into the Batch File: box. Enter \ptc\proeWildfire2\bin\proe1 into the Pro/Engineer Command Box.

This next step is extra but I like to do it.

Add these options to your config.pro that you put in the folder (if you are outputting dxfs instead of pdf).

DXF_EXPORT_FORMAT 2000

DXF_OUT_DRAWING_SCALE NO

DXF_OUT_SCALE_VIEWS NO

DXF_OUT_SEP_DIM_W_BREAKS NO

DXF_OUT_STROKE_TEXT YES

INTF2D_OUT_ENHANCED_ENTS SPLINE_AND_HATCH

INTF_OUT_LAYER NONE

INTF2D_OUT_ACAD_MTEXT NO

INTF2D_OUT_ACAD_TEXT_ALIGN

INTF2D_OUT_PNT_ENT

INTF2D_OUT_OPEN_LOG_WINDOW NO

The final step is to hit Schedule, Start the Task (after you hit File, Save).

This should bring up the Schedule box and click OK after 0 hours.

Set Adobe Distiller to run in the folder that the PostScript files come out in or collect the dxf files out of that folder. It should output multiple sheets as one multiple sheet pdf and dxfs as the name of the file with and underscore then the sheet number.



In Reply to Brent Drysdale:
Hi Folks,
I am completely unfamiliar with batch files for getting ProE to do stuff. I have a comment from our ECAD brethren that their latest release supports viewing of STEP files of parts so I am wondering if it is possible to run some sort of batch process that takes existing electro-mechanical part files and saves them as same name STEP files?

Many thanks in advance.

P.S. very little feedback so far on the internal PDF creation from WF4. I got one saying don't use it due to this sort of problem. Seems very strange that PTC does not have this PDF creation process nailed.
--
Regards, Brent Drysdale
Regards, Brent Drysdale
Mechanical Designer
Tait Electronics Ltd (www.taitworld.com)
New Zealand
Ph. +64 3 358 1093
This email, including any attachments, is only for the intended addressee. It is subject to copyright, confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.


Michael R. Jenkins P.E.
Design Engineer
Direct: 816-801-2332
Fax: 816-891-9432

Commercial Vehicle Systems
Haldex Brake Products Corporation
10930 North Pomona Avenue
Kansas City, MO 64153-1215

What I did was to create a map key that makes a STEP file for a single
part. Then you simply take that script and you do it over and over and
over using a different part number each time. Its not possible to
automate this on Pro just by going to search and clicking or going down
to the next item. It is not possible to map key that. You have to expand
your model tree, and then go to "settings>save model tree"



That will give you the list of part numbers names to add to your map key
making tool. Basically you take that and you make a bunch of map key
copies and a key that runs all the keys one by one.



Here is my tool. To use it you need to use our numbering convention
where items start with an 8 and have 4 to 5 digits afterwards. You also
need to install perl from activestate.com or what ever your favorite is.



Save the model tree as item_list.txt

Run batch_input.pl to create batchinput.txt

Run Batcharator_stp.pl to create batchoutput.pro



Run pro/e and use the batchoutput.pro as one of your config.pros



The go map key is called "imp". You have to come up with your own STEP
making map key called "/stp"



So type "imp" and you will see stuff open and close. You can if you want
have some coffee. Or you can massage your brain and look intensely at
the mouse or the screen while other people walk by.



Ofcourse you need to open these up and adjust them for your own part
numbering or make it part number independent. The map key won't care so
long as you have a list called batchimput.txt





Regards,



Alfonso









In Reply to Brent Drysdale:

Hi Folks,
I am completely unfamiliar with batch files for getting ProE to do
stuff. I have a comment from our ECAD brethren that their latest
release supports viewing of STEP files of parts so I am wondering if it
is possible to run some sort of batch process that takes existing
electro-mechanical part files and saves them as same name STEP files?

Many thanks in advance.

P.S. very little feedback so far on the internal PDF creation from WF4.
I got one saying don't use it due to this sort of problem. Seems very
strange that PTC does not have this PDF creation process nailed.
--
Regards, Brent Drysdale
Regards, Brent Drysdale
Mechanical Designer
Tait Electronics Ltd (www.taitworld.com)
New Zealand
Ph. +64 3 358 1093
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, confidential and may be the
subject of legal or other privilege, none of which is waived or lost by
reason of this transmission. If the receiver is not the intended
addressee, please accept our apologies, notify us by return, delete all
copies and perform no other act on the email. Unfortunately, we cannot
warrant that the email has not been altered or corrupted during
transmission.



Michael R. Jenkins P.E.
Design Engineer
Direct: 816-801-2332
Fax: 816-891-9432

Commercial Vehicle Systems
Haldex Brake Products Corporation
10930 North Pomona Avenue
Kansas City, MO 64153-1215

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags