{"id":848,"date":"2020-08-19T23:32:10","date_gmt":"2020-08-19T23:32:10","guid":{"rendered":"https:\/\/creosite.com\/?page_id=848"},"modified":"2021-03-03T23:08:30","modified_gmt":"2021-03-03T23:08:30","slug":"protrail","status":"publish","type":"page","link":"https:\/\/creosite.com\/index.php\/protrail\/","title":{"rendered":"ProTrail"},"content":{"rendered":"\n<p>ProTrail is a Windows\/DOS tool I created to automate Creo Parametric tasks on local files like:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>regenerate<\/li><li>export<\/li><li>print<\/li><li>verify<\/li><li>etc.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to use it<\/h2>\n\n\n\n<p>The tool must be run from a DOS prompt and is configured via commandline options.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download&nbsp;it and put it in a folder which is in your path variable (e.g. c:\\WINDOWS).<\/li><li>Open a DOS prompt (Start -&gt; Run -&gt; CMD) and run the script.<br>start it first with&nbsp;<a href=\"https:\/\/creosite.com\/index.php\/protrail-help\/\" data-type=\"page\" data-id=\"851\">ProTrail -h<\/a>&nbsp;to get the help.<\/li><\/ol>\n\n\n\n<p>It&#8217;s not an easy tool to use becuase it does not have a UI. It was developed for my own use with the option to share it with other Creo users.<br>If you&#8217;re keen on automating Pro\/E tasks this is one of the many tools which can help you with it.<\/p>\n\n\n\n<p>The program creates a Creo Parametric trailfile which performs specified actions on the objects found.<\/p>\n\n\n\n<p>It has been used since Pro\/E R2001 and is now being used with Creo 4.0.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Examples<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong><code>ProTrail -h<\/code><\/strong><br><a href=\"https:\/\/creosite.com\/index.php\/protrail-help\/\" data-type=\"page\" data-id=\"851\">Show the help screen.<\/a><\/li><li><strong><code>ProTrail -e iges -asm -dontrun<\/code><\/strong><br>Export iges file for all assemblies; only create the trailfile (don&#8217;t run it).<\/li><li><strong><code>ProTrail -p \"Ghost pdf\" -drw<\/code><\/strong><br>Print all drawings using you\u00a0<em>Ghost pdf<\/em>\u00a0print command.<\/li><li><strong><code>ProTrail -verify -famtab -prt -foreground<\/code><\/strong><br>Verify and Save FamilyTable for every generic part and run in the foreground.<\/li><li><strong><code>ProTrail -cmd \"C:\\PTC\\Creo 5.0.6.0\\Parametric\\bin\\parametric.bat\" -v creo5 -models -workdir -e step -noopenerr -localtrail<\/code><\/strong><br>Specify the Creo start command and it&#8217;s version, open all  models (.prt and .asm), run in your workdir, export step file, don&#8217;t check if file exist, write and check the trail file in the local folder<\/li><li>etc. &#8230;.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Download<\/h2>\n\n\n\n<p>You are free to use this tool without any charge, but also without any guarantees (<a href=\"https:\/\/creosite.com\/index.php\/protrail-help\/\" data-type=\"page\" data-id=\"851\">see the help for the disclaimer<\/a>). Please&nbsp;<a href=\"https:\/\/creosite.com\/index.php\/contact\/\" data-type=\"page\" data-id=\"57\">contact me<\/a>&nbsp;and tell me what you think of it and to report bugs.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong><a href=\"https:\/\/creosite.com\/UTIL\/ProTrailv7.63.zip\">ProTrail.zip<\/a><\/strong> (v7.63)<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">History<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>20200619: v7.63 olafc Now checking if SimpRepName was found in the trail.txt file. Gives WARNING if not.<\/li><li>20200605: v7.62 olafc Added -dppvz. Fixed ProfileOpt: now only selecting if a name is given.<\/li><li>20200424: v7.61 olafc Fixed -pdfnosearchtext, -pdfnohyperl, -pdfstroketext options. Added -pdfsinglesheet<\/li><li>20200109: v7.60 <em>[internal Fico changes]<\/em><\/li><li>20191121: v7.5 olafc: Added ProfileOpt and ProfileName for option -profile<\/li><li>20190412: v7.4 olafc: Added 2 options to ilinkconfig to prevent java script errors. Removed config option efx_enabled. (not yet compiled or saved)<\/li><li>20190110: v7.3 olafc: Disabled EFX and AFX with ilinkconfig<\/li><li>20190110: v7.2 olafc: Changed open_rep command in DrwNoViewRep section.<\/li><li>20181115: v7.1 olafc: Added -xvl option. Added in Creo 4 to select the Render customize option when exporting.<\/li><li>20181023: v7.0 olafc: Major improvements in determining Sheetsizes and number of sheets. Tested with Creo2, Creo4 and Creo5.<\/li><li>Added support for Creo5.<\/li><li>20181019: v6.67 olafc: <em>[internal Fico changes]<\/em> More debug info with SheetSize determination.<\/li><li>20181018: v6.66 olafc: Starting implementing Creo4<\/li><li>20181012: v6.65 olafc: Added -startup option.<\/li><li>20180928: v6.64 olafc: Added startup_check_for_visualization no to ilink config.pro<\/li><li>20180514: v6.63 olafc: &#8220;cannot find&#8221; &#8220;drw&#8221; check is now case insensitve.<\/li><li>20180223: v6.62 olafc: Included StepSolid option in wDrwPrtStep and wDrwAsmStep functions.<\/li><li>StepSolid now also disables Annotations.<\/li><li>20180112: v6.61 olafc: Added -stepsolid option.<\/li><li>20170823: v6.60 olafc: Fixed Backup warning OK message. Added -outfile. Added -nogencheck<\/li><li>20170222: v6.59 olafc: <em>[internal Fico changes]<\/em><\/li><li>20160513: v6.58 olafc: Added regen_failure_handling resolve_mode<\/li><li>20160510: v6.57 olafc: Added 15 storage conflicts ok&#8217;s when saving to ENF<\/li><li>20160228: v6.56 olafc: Added -accel option<\/li><li>20160209: v6.55 olafc: <em>[internal Fico changes]<\/em><\/li><li>20160203: v6.54 olafc: Added -sheets option.<\/li><li>20160203: v6.53 olafc: Added -redirect option<\/li><li>20160202: v6.52 olafc: Added timestamps to STEP and PVZ exports<\/li><li>20160201: v6.51 olafc: Added -dastep<\/li><li>20160128: v6.50 olafc: Added -dapvz<\/li><li>20160126: v6.49 olafc: Added -dpstep<\/li><li>20160111: v6.48 olafc: Now first opening the master and then switch to SimpRep.<\/li><li>20160111: v6.47 olafc: Added output when opening simprep.<\/li><li>Added open_simplified_rep_by_default yes to config.pro if opening simprep.<\/li><li>Added open instance to open model of instance is asked.<\/li><li>20151014: v6.46 olafc: Added OpenSimpRep. Default is now Creo 2.0<\/li><li>20151009: v6.45 olafc: <em>[internal Fico changes]<\/em><\/li><li>20150818: v6.44 olafc: Added StepOpt to add datum_curves selection during export.<\/li><li>20150610: v6.43 olafc: Added \\n after ~ Activate <code>storage_conflicts<\/code> <code>Close_PushButton<\/code> in wProdConf function<\/li><li>20150206: v6.42 olafc: Fixed setting Environment back to shaded.<\/li><li>20150204: v6.41 olafc: For Creo switching between EnvNoHidden and EnvShade fixed.<\/li><li>20141208: v6.40 olafc: Added ~ Activate <code>storage_conflicts<\/code> <code>Close_PushButton<\/code> to SaveAs option.<\/li><li>Also added config option regen_solid_before_save no to ilink config.pro file.<\/li><li>20141208: v6.39 olafc: Added #CURRENT VALS to SaveAs option (in case regenerate on Save is turned on)<\/li><li>20141128: v6.38 olafc: <em>[internal Fico changes]<\/em><\/li><li>20141107: v6.37 olafc: Exit now runs ~ Command <code>ProCmdExit<\/code>. Save as now runs: ~ Command <code>ProCmdModelSaveAs<\/code>.<\/li><li>~ Activate <code>main_dlg_cur<\/code> <code>Windows.psh_win_close<\/code> replaced by ~ Command <code>ProCmdWinCloseGroup<\/code>.<\/li><li>Created _Creo print alternatives.<\/li><li>20140828: v6.36 olafc: Added OK for error message about not able to open pre-2000i rep<\/li><li>20140801: v6.35 olafc: File open is now cmd.<\/li><li>20140801: v6.34 olafc: ProCmd is now run with brackets.<\/li><li>20140415: v6.33 olafc: Added 3DPDF export. Fixed Productview export is now db_1102.<\/li><li>20130528: v6.32 olafc: Added NO! after STL export to go past a specific question<\/li><li>20130312: v6.31 olafc: Added &#8220;cannot find&#8221; with &#8220;.drw&#8221; to error reporting.<\/li><li>20130312: v6.30 olafc: Added &#8220;regeneration failed. Select option from menu.&#8221; to error reporting<\/li><li>20121209: v6.29 olafc: Added &#8220;failed&#8221; and &#8220;could not&#8221; to error reporting<\/li><li>20120112: v6.28 olafc: Added -nodrwcheck<\/li><li>20110825: v6.27 olafc: Added -noerrors<\/li><li>20110421: v6.25 olafc: Added -erase to the help as well.<\/li><li>20110420: v6.24 olafc: Added -erase option<\/li><li>20110405: v6.23 olafc: Added wc intralink error click away.<\/li><li>20110203: v6.22 olafc: Changed all dir&#8217;s from \/o-n to \/on. Order was always highest number at the top.<\/li><li>20110124: v6.21 olafc: Added CURRENT VALS after regen<\/li><li>20110111: v6.20 olafc: Added save_instance_accelerator always to 3dexpconf<br>Unable to triangulate now also gives an error message<\/li><li>20101112: v6.19 olafc: now not importing Windchill parameters with -parimp (PTC_WM, PTC_ORG)<\/li><li>20101028: v6.18 olafc: -stl options now also used for -e render. Added -e render to help.<br>-stl options now don&#8217;t automatically set -e stl.<br>Removed spincenter command from special exports (controlled via config.pro)<\/li><li>20100914: v6.17 olafc:&nbsp;<em>[internal Fico changes]<\/em><\/li><li>20100906: v6.16 olafc: Added support to recognize WF5 models.<\/li><li>20100826: v6.15 olafc: Added Exp3DConfigPro to export all levels of step and iges files. Model now set for Unknown objects.<\/li><li>20100818: v6.14 olafc: Added setting to current working dir when exporting parameter info file.<br>Added Open Rep command after opening a file.<br>Now also a trailfile error when exporting and No object was copied is found.<\/li><li>20100817: v6.13 olafc: Added -noopenerr. Added -unknown.<\/li><li>20100816: v6.12 olafc: Added Generic Postscript at the printer selection function to prevent hanging ProE when the<br>default MS printer is set to a device which needs a filename (e.g. pdf or xps)<\/li><li>20100708: v6.11 olafc: Ilink config.pro now has &#8220;compress_output_files NO&#8221; added<\/li><li>20100622: v6.10 olafc: Added ~ Activate `storage_conflicts` `Resol1` to force it to Continue instead of Check Out.<\/li><li>20100608: v6.9 olafc: DM_CHECKOUT_ON_THE_FLY added to config.pro.<br>Now telling that we&#8217;re creating an Ilink9.1 config.pro.<\/li><li>20100429: v6.8 olafc: Added -ilinkconf option.<\/li><li>20100426: v6.7 olafc: Added -backup option.<\/li><li>20100412: v6.6 olafc: Special config.pro now uses shaded display. Changed wirh-&gt;with.<\/li><li>20100403: v6.5 olafc:&nbsp;<em>[internal Fico changes]<\/em><\/li><li>20100403: v6.4 olafc: DXF&#8217;s and DWG&#8217;s now created with NoHidden environment and PDF&#8217;s in Shaded.<\/li><li>20100401: v6.3 olafc: Added -drwnoview and -drwdispstat options<\/li><li>20100329: v6.2 olafc: Added 2 lines to close meesage window for erronous toolkit applications: fputs(&#8220;~ Activate `UI Message Dialog` `ok`\\n&#8221;,fp1);<\/li><li>20100325: v6.1 olafc: Added VerSet.<\/li><li>20100317: v6.0 olafc: Started implementing stuff for Windchill. Added option -o to just open a model without looking for local presence<br>To support -o option alos changed the &#8220;Select filename&#8221; to &#8220;Update filename&#8221; when opening models.<br>Added -graphics option (the same as -foreground)<\/li><li>20100311: v5.68 olafc: Added -minfo option. If inputfile consists of models with no 2nd ext then also check for models with .1 ext if nothing is found.<\/li><li>20100105: v5.67 olafc:&nbsp;<em>[internal Fico changes]<\/em><\/li><li>20091201: v5.66 olafc:&nbsp;<em>[internal Fico changes]<\/em><\/li><li>20091201: v5.65 olafc:&nbsp;<em>[internal Fico changes]<\/em><\/li><li>20091013: v5.64 olafc: Removed MODEL_TREE_START NO from config.pro<\/li><li>20091007: v5.63 olafc: Added -parimp option (to create parameters from parameter file)<\/li><li>20091007: v5.62 olafc:&nbsp;<em>[internal Fico changes]<\/em><\/li><li>20090729: v5.61 olafc:&nbsp;<em>[internal Fico changes]<\/em><\/li><li>20090419: v5.60 olafc: WF4 is now the default<\/li><li>20090405: v5.50 olafc: Explode options now more robust. Fixed WF4 assign material.<br>Now skipping non generics when performing Family Table tasks<br>Fixed import function.<\/li><li>20090324: v5.46 olafc: Added &#8220;Resolve the failures first&#8221; to error check<\/li><li>20081020: v5.44 olafc: Crash when -dep or -chkvers was run<\/li><li>20081003: v5.43 olafc: Added -prodconf<\/li><li>20081003: v5.42 olafc: Added -path option<\/li><li>20080911: v5.41 olafc: Fixed -i option when file had spaces in them. seps -&gt; sepsp.<br>Also changed CreateDirList &amp;&amp; ! CreateDirList to ! CreateDirList.<\/li><li>20080902: v5.40 Started implementing Wildfire4. Added pdf options.<\/li><li>20080528: v5.32 Added -local option to use local drwfiles, but open them from the workspace (should be used together with ilink or ws option)<\/li><li>20080520: v5.31 Changed last lines of trail file to 15. Added ERROR: to &#8220;Failed to regenerate component placement&#8221; error.<\/li><li>20070817: v5.30 If no sheets are found in a drawing it will assume there is at least one.<br>Added note to help about not storing your files compressed<\/li><li>20070420: v5.29 Added -parexp and -parwu option<\/li><li>20070419: v5.28 Added -trail option<\/li><li>20070417: v5.27 Added -chkvers option<\/li><li>20070411: v5.26 Fixed reading header of PTC files.<\/li><li>20070405: v5.25 Fixed checking PTC files (fileversion, sheetnumbers, etc.)<\/li><li>20060922: v5.23 Fixed crash when running -i option.<\/li><li>20060831: v5.22 Added -singlesheet option<\/li><li>20060823: v5.21 Upgraded -blank option to Wildfire. Added WF2 error with -e pdf.<\/li><li>20060822: v5.20 Added -i option.<\/li><li>20060821: v5.19 Added -workdir option.<\/li><li>20060627: v5.17 TrailDir now uses %TEMP% variable if it exists.<\/li><li>20060616: v5.15 Added -massprop option. Added wildfire3 option.<\/li><li>20060523: v5.14 Commented FREEZE_FAILED_ASSY_COMP YES, since it made certain parts change explode position.<\/li><li>20060301: v5.9 WF2 cmd for Workspace version changed from proewildfire2l to proe1<\/li><li>20060221: v5.8 Changed -e pdf, -e stl, -stl chord and -stl angle option.<\/li><li>20060217: v5.7 First released version<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>ProTrail is a Windows\/DOS tool I created to automate Creo Parametric tasks on local files like: regenerate export print verify etc. How to use it The tool must be run from a DOS prompt and is configured via commandline options. Download&nbsp;it and put it in a folder which is in your path variable (e.g. c:\\WINDOWS). &#8230; <a title=\"ProTrail\" class=\"read-more\" href=\"https:\/\/creosite.com\/index.php\/protrail\/\" aria-label=\"Read more about ProTrail\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-848","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/creosite.com\/index.php\/wp-json\/wp\/v2\/pages\/848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creosite.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/creosite.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/creosite.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creosite.com\/index.php\/wp-json\/wp\/v2\/comments?post=848"}],"version-history":[{"count":14,"href":"https:\/\/creosite.com\/index.php\/wp-json\/wp\/v2\/pages\/848\/revisions"}],"predecessor-version":[{"id":919,"href":"https:\/\/creosite.com\/index.php\/wp-json\/wp\/v2\/pages\/848\/revisions\/919"}],"wp:attachment":[{"href":"https:\/\/creosite.com\/index.php\/wp-json\/wp\/v2\/media?parent=848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}