Documente Academic
Documente Profesional
Documente Cultură
Olaf Corten
Fico BV
This presentation
Why Automate? Which solutions are available? Focus on free solutions with no programming knowledge needed
Mapkeys, trailfiles, Pro/BATCH
3rd party tools: ProTrail and sBatch
Why Automate?
Customize and extend the Pro/ENGINEER user interface with seamlessly embedded custom processes Integrate expert systems and knowledge-based applications into the Pro/ENGINEER environment Create automated, single-use, or derived designs by external manipulation of geometric and parametric constraints Improve product quality with design rule verification based on inputs from external solutions
The sky is the limit. It all depends on the tools you use
Pro/Toolkit (C/C++ library) J-Link (Java) - Free Automation Gateway (Visual Basic, VBA, C, etc) Pro/Web.Link (HTML and Javascript) - Free Pro/BATCH - Free Built in tools like: Trailfiles & Mapkeys
sBatch ProTrail
Pro/BATCH
Tool with graphical UI to Export 2D & 3D formats Free Scheduler No PDM Integration
Pro/BATCH - Usage
Make shortcut to [proloadpoint]\bin\pro_batch.bat and set startup folder to where you want to run it. Select the files you want to process Select the action you want to do
Name your batchfile and enter which ProE startup command to use (normally proe1.bat)
Save the batchfile Now run it (or schedule it) Starts ProE with cmdline options: 0 0 3 pro_wait -batchfile [path]\[batchfile]
Pro/BATCH - Demo
Create DXFs from a few drawings
Free
Use built in mapkey recorder Tools -> Mapkeys -> New or Get the commands from session trailfile Copy them to config.pro mapkey xxx [commands] Pick carefully Dont make screen selections (unless you want to create a trailfile) If you need to select something Use the Find Tool
Continuation:
Continue mapkeys on a new line by ending previous line with ;\
Continuation:
You can put ProE continuation lines on one line as long as they dont exceed the line length. Maximum line length = 98 characters (incl. backslash) E.G. ~ Select `file_saveas` `type_option` \ 1 `db_137` Change into: ~ Select `file_saveas` `type_option` 1 `db_137`
TIP: Always end this with the mapkey in brackets e.g. (mapkey fadxf)
E.G.
mapkey xxx @MAPKEY_LABELName of the mapkey;\ mapkey(continued) @MAPKEY_NAMEName and action (mapkey xxx)
Browsing:
Type in full path vs browsing
~ Select `file_saveas` `ph_list.Filelist` 1 `Data` ~ Activate `file_saveas` `ph_list.Filelist` 1 `Data` ~ Select `file_saveas` `ph_list.Filelist` 1 `PTC` ~ Activate `file_saveas` `ph_list.Filelist` 1 `PTC` ~ Select `file_saveas` `ph_list.Filelist` 1 `Work` ~ Activate `file_saveas` `ph_list.Filelist` 1 `Work` ~ Activate `file_saveas` `ok` vs ~ Update `file_saveas` `opt_EMBED_BROWSER_TB_SAB_LAYOUT` \ `d:\\data\\ptc\\work` ~ Activate `file_saveas` `opt_EMBED_BROWSER_TB_SAB_LAYOUT` ~ Activate `file_saveas` `ok`
Nesting mapkeys:
Create nested mapkeys by calling other mapkeys with the percent sign. E.G.
mapkey fsa @MAPKEY_LABELSave As;\ mapkey(continued) @MAPKEY_NAMESave As (mapkey fsa);\ mapkey(continued) ~ Activate `main_dlg_cur` ` ProCmdModelSaveAs `
mapkey fsdxf @MAPKEY_LABELSave As DXF;\ mapkey(continued) @MAPKEY_NAMESave As DXF (mapkey fsdxf);\ mapkey(continued) %fsa;\ mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_137`;\ mapkey(continued) ~ Activate `file_saveas` `OK`
Parameters:
Use old Parameter UI With the config.pro option NEW_PARAMETER_UI NO.
vs
sBatch
Graphical utility to run your own mapkeys Free Uses J-Link By USG Innotiv (Martein Schuttert) Builds one large mapkey from selected mapkeys and runs it on your files
sBatch
Plotdate
sBatch v3.2
Creates one large mapkey and adds a button configured to run this mapkey to your config.win
Uses asynchronous J-Link connection Supports 64-bit Supports Pro/ENGINEER Wildfire 4 Supports Windchill Workspace
Intralink 3.x
C:\Program Files\USG Innotiv sBatch Finds your latest Wildfire version (up to v4.0) Configure PDM integration
Desktop icon
sBatch Installation
Creates c:\windows\sbatch.ini (to hold installation paths) Creates \.usginnotiv\sbatch.conf in your %USERPROFILE% (holds sBatch config. Can be updated from sBatch) sBatch looks for config.pro in [proeloadpoint]\text
Running sBatch
sBatch Demo
Create 300dpi jpegs with a white background specified models shaded in the DEF_1 orientation.
Use mapkeys
vv1 - Set View to DEF_1 vs - Shade faj3 - Create 300dpi jpg with white background
ProTrail
Runs predefined tasks on selected files Creates a large trailfile and runs it with ProE Runs in the background Does error checking when the task is finished Written by me in C++ DOS Commandline utility
ProTrail
Download from:
In most cases upwards compatible because running trailfiles is often upwards compatible as well.
ProTrail
Predefined tasks
Export several 2D and 3D formats Create images Explode, unexplode
ProTrail Installation
Running ProTrail
Running ProTrail
Running ProTrail
Options
File Selection:
Wildcards *.*, etc. -drw, -prt, -asm, -lay, -models -i inputfile -num (objects with numerical names: e.g. 12345.prt
Running:
Running ProTrail
Options
export
Jpg, tiff Dxf, dwg, pdf Iges, Step, set, stl, productview, shrinkwrap
print (to printername) several other plot related options Intralink 3.x options
Running ProTrail
Options
Specials:
-save -view, -shade -regen -unit, -(un)assign -verify, -famtab, -instsave -(un)explode, -interference, -massprops -trail
Running ProTrail
Examples:
protrail e dxf e pdf drw Create dxf and pdf files of all sheets on all drawings protrail bgw e jpg dpi 300 view DEF_1 shade models 36* Set background to white and create 300dpi jpegs of the DEF_1 shaded view of all models starting with 36 in their name protrail ws WORK unit mmNs assign aisi_316.mat regen save prt In Workspace WORK set all parts to mmNs units, assign material aisi_316, regenerate and save
Running ProTrail
Examples:
protrail unexplode interference asm -e step Open all assemblies, unexplode them, do an Interference check and export to step