Go back to Olaf Corten's Home Page or learn more about Olaf Corten < olafc@molding.fico.nl>

========================================================================

OCUS DESCRIPTION file. Version 5.0 03-11-2000

========================================================================

This is a listing and a short description of all OCUS scripts. Some command's will give more information if you start them with the -h commandline parameter (e.g. dupl_dir -h). Optional commandline parameters are in [].

See the README file for more information about configuring these scripts.

ProEngineer [options]
Startup script for Pro/ENGINEER.
Very usefull for multiple users and different kinds of licenses.
Checks available licenses. Creates a logfile for each session.
Gives a user friendly startup window with all available
licenses.
Read all information incorporated in the script and make the
necessary adjustements.
See also ProEngineer -h .
Configure: Needs a lot of configuration: available
licenses, available machines, logfile, etc.

ProENGINEER [options]
Startup script for Pro/ENGINEER.
Stripped down version of ProEngineer. Creates a logfile for each
session. Sets environment variables.
Read all information incorporated in the script and make the
necessary adjustements.
See also ProENGINEER -h .
Configure: Needs to be configured.

Pro_Clean [dir]
Recursive purge (and cleanup) command for current or given dir.
Can be run silently (for running it during the night).
Uses Pro_Purge.
See also Pro_Clean -h

Pro_Purge [dir]
Purge command for current or given dir.
Can handle very large directories. Can retain multiple files.
Can set the extension back to 1.
See also Pro_Purge -h .
Uses remove_if_proe_created (You can edit this script to use
the UNIX mv command instead).

admin_database [options] databases
To perform administrative tasks on Pro/PDM databases like renaming
creating etc.
Uses check_dbasenr.
See also admin_database -h .

add_images [options] file1 file2 [file3]
This script will read two SGI rgb images and add them to one sgi
rgb image. The rgb values of the in-images will be scaled down
to yield an image of normal brightness.
See also add_images -h

ascii_functionkeys [options]
This script will remap the Shift-Functionkeys to special ASCII
characters.
See also ascii_functionkeys -h .

assy_bom [options] files
This script produces an assembly tree of an assembly file. It
will look for models in all of your search_path directories
deriven from your config.pro file.
Uses model_ref.
See also assy_bom -h .

assy_find [options] assembly_file
Creates a BOM for assembly file and shows all models with the
same name recursive from the current directory or in all directories
in a given file.
See also assy_find -h .

backup_pdm_dbase [options] database
Creates a Pro/PDM trailfile which will backup a specified
database and will start Pro/PDM with it.
Uses check_dbasenr.
See also backup_pdm_dbase -h .

cat_config_options_from_cdb
Show all possible config.pro options (and their values). Taken
from the help-function of Pro/TABLE.
Configure: loadpoint dir for Pro/E in the script.
See also cat_config_options_from_cdb -h .

cat_current_config.pro [file]
Show all config.pro options in the current or given config.pro file.
Configure: where to find current config.pro
See also cat_current_config.pro -h .

cat_tab files
This script gives a readable output of a Pro/ENGINEER Family Table file.
See also cat_tab -h .

change_dir_retrieve [options] assembly
Creates a trail file which retrieves all the models of the assembly.
Before retrieving a model it perfroms a change dir to the
directory where the model resides. This might speed up retrieval
times of assemblies which are spread over a lot of different
large search_path directories.
Uses model_ref.
See also change_dir_retrieve -h

change_dir_retrieve_trail [options] [directory]
Creates a trail file which retrieves all your models in session.
Before retrieving a model it perfroms a change dir to the
directory where the model resides. This might speed up retrieval
times of assemblies which are spread over a lot of different
large search_path directories.
See also change_dir_retrieve_trail -h
Configure: where to find current config.pro

check_dbasenr [options] database
Returns the selection row number of a given database for use
in automated trail files.
See also check_dbasenr -h .

chck_config.pro [file]
Checks your config.pro or [file].
Uses scripts dupl_config.pro, dupl_mapkeys, nest_mapkeys and
compare_config_with_cdb
Configure: where to find current config.pro
See also chck_config.pro -h

chck_corrupted_file [options] files
Checks if files are correct Pro/E files.
See also chck_corrupted_file -h .

compare_config_with_cdb
This script checks the config.pro file for config.pro options
not found in config.cdb file.
Uses cat_config_options_from_cdb and cat_current_config.pro.
Configure: where to find current config.pro

convert_expanded_to_single [options] files
Creates single level Pro/PDM BOM files from an expanded
Pro/PDM BOM report.
See also convert_postscript_size -h .

convert_postscript_size [options] files
Convert Postscript files from A3 to A4 (or from A4 to A3)
See also convert_expanded_to_single -h .

create_instance_trail [options] files
This script creates a trail file which creates a Pro/E model
with geometry and without a family table for all instances of
a given generic part file.
See also create_instance_trail -h

create_retrieve_trailfile [options] [file(s)]
Creates a trail file which will retrieve all models or given
files in your current directory.
You can let the trail file export the model to given formats,
make assemblies explode or force a regenerate of all parts, etc.
See also create_retrieve_trailfile -h .

dec2hex number
Converts a decimal number to hexadecimal format

demomakemovie [options]
Utility to create snapshot image movies with Pro/E. It creates
a trail-file which increments a Pro/E parameter, regenerates the
model and calls the scrsave routine to save part of the screen or
your entire active Pro/E window.
Written by Frank Rood.
Uses pro_scrsave.
See also demomakemovie -h .

drw_model [options] [files]
Checks for reference models in a Pro/ENGINEER drawing file.
Uses model_ref script.
See also drw_model -h .

dupl_config.pro [file]
Searches config.pro or [file] for duplicate config.pro options.
Configure: where to find current config.pro

dupl_dir [options] directory1 directory2
Compare directory1 and directory2 for duplicates.
See also dupl_dir -h .

dupl_mapkeys [file]
Searches for duplicate and conflicting mapkeys in config.pro or
[file].
Configure: where to find current config.pro
See also dupl_mapkeys -h .

files_not_in_use [dir]
Search in current or given directory for files which are not
referenced by in the header section of other Pro/E files.
See also files_not_in_use -h .

find_obs_inst [options] [dir]
find_obs_inst recursively searches your current directory (or
given directory) for accelerator files (*.xpr and *.xas) and
family table files which are not referenced in the index file.
See also find_obs_inst -h .

flushptc [option]
Wrapper script to easily use ptcflush.
See also flushptc -h .

hex2dec hexnumber
Converts a hexadecimal number to decimal

killpro
Kill your current Pro/E session (with confirmation).
See also killpro -h .

model_info [options] files
Shows internal feature names of a model like parameters, notes,
datum names and simplified reps.
See also model_info -h .

model_ref [options] files
Give a listing of the pointers in the header section of the given
Pro/E files.
e.g. With the following command you can find parts which need
other models to regenerate correctly:
find . -name '*.prt*' -exec model_ref '{}' ';'
See also model_ref -h .

miss_mapkeys [file]
This script checks the config.pro file for missing nested mapkeys.

nest_mapkeys
Checks the mapkeys in config.pro for the depth of the nesting
level.
See also nest_mapkeys -h
Configure: Where to find current config.pro

objname_from_inf
Check the latest layer or model info file and extracts the model name.

overlay_psfiles [options] psfile1 psfile2 [psfile3 ...]
Overlays two postscript files of the same size into one SGI
image and displays it. With the -m option it places the images
in a movie.
See also overlay_psfiles -h .

pdm_search [options] name
This extensive script creates a PDM trailfile which
creates a report of all objects for the specified criteria and
databases anr runs Pro/PDM with it.
Has numerous other options (like fetching objects)
If no name is given on the commandline it will search for all names (*).
By default it will list all LATEST objects from ALL DATABASES.
This is the Pro/PDM equivalent of the create_retrieve_trailfile.
Uses check_dbasenr.
See also pdm_search -h .

pen_width file
Change the pen width of a HPGL2 file with a certain factor.
See also pen_width -h .

pov_min_max [options] files
Show the minimum and maximum X, Y and Z coordinates of a
POV-Ray file created with Pro/ENGINEER and pro2pov.
See also pov_min_max -h .

pov_scene [options] file
Creates a default POV-Ray scenery file for a .pov file created
with pro2pov.
Uses pov_min_max.
See also pov_scene -h .

pov_strip [options] colorname files
Strips all smooth_triangles of a specific color from a POV-Rayfile
created by pro2pov.
See also pov_strip -h .

print [options] files
This script is the common print command for Pro/ENGINEER
printfiles to a selected plotter or printer. It recognizes
Postscript and HPGL files and selects an appropriate printer.
Uses convert_postscript.
See also print -h

pro2pov [render_file]
Converts a Pro/E .slp render file to a povray .pov file.
With thanks to Korhan Tekin.
See also pro2pov -h .

pro_ascii
Starts the editor with the Extended ASCII characters available
in Pro/E drawings.

pro_bell
Ring a system bell.
Being called from the utilities menu in Pro/ENGINEER.

pro_bench_dummy_part.prt.1.gz
The dummy part needed for pro_bench.
See also pro_bench -h.

pro_bom_ls [file]
Scans the latest BOM file for parts and sub-assemblies and
shows all models with the same name in the working directory.
A tool which allows you to gather all models tied to an assembly.
If you give all your drawings the same name as their models try this:
create a BOM of your top-level assembly, use this script to get
a listing of all your drawings and give the result to the script
create_retrieve_trailfile to create a trail file which retrieves
all drawings tied to the assembly:
Example: create_retrieve_trailfile `pro_bom_ls | grep '\.drw\.'`
See also pro_bom_ls -h .

pro_copy_cur_trail
Copies the latest trailfile to the file trail_edit in your
current directory (removes also all #TRAIL entries).
Then starts the editor with this file.
Being called from the utilities menu in Pro/ENGINEER.
Configure: where to find trail file
See also pro_copy_cur_trail -h .

pro_delinf
Delete Pro/E info files in your current directory.
Being called from the utilities menu in Pro/ENGINEER.

pro_dirview
Start dirview for your current directory.
Being called from the utilities menu in Pro/ENGINEER.

pro_edit_cur_trail
start the editor with the latest trailfile.
Being called from the utilities menu in Pro/ENGINEER.
Configure: where to find trail file
See also pro_edit_cur_trail -h .

pro_edit_inf_file
Edit latest created *.inf* or *.bom* file.
Being called from the utilities menu in Pro/ENGINEER.

pro_editor file
Starts the editor available for your OS.
Being called by Pro/E.

pro_flush
Run proflush command remote on the NLO-server.
Being called from the utilities menu in Pro/ENGINEER.
Configure: proserver name.

pro_grosview
Start gr_osview.
Being called from the utilities menu in Pro/ENGINEER.

pro_logfile_usage
Give a listing of the Pro/E usage. This script needs to know where
to look for it's logfile generated by the ProEngineer script.
Configure: logfile.

pro_loudbell
Ring a louder bell.
Being called from the utilities menu in Pro/ENGINEER.
Configure: bell sound file

pro_memusage
Show the amount of memory in use by your current Pro/E session and the
swap usage.
Gives the values SZ and RSS from 'ps' in Mb.

pro_prev_directory
This script scans your latest trail file for the previous directory
you changed to and will create a trail file which performs a change
dir to this directory.
Use with mapkey.

pro_printstatljt
Start printer status for laserjet.
Being called from the utilities menu in Pro/ENGINEER.

pro_print_inf_file
Print latest created *.inf* or *.bom* file.
Being called from the utilities menu in Pro/ENGINEER.

pro_ready
Ring a bell and show a confirmation window so you can tell Pro/E
(mapkey) to warn you when it is ready for input.
Being called from the utilities menu in Pro/ENGINEER.
See also pro_ready -h .

pro_rename [options] [file]
Extensive renaming utility.
USE WITH EXTREME CAUTION
See also pro_rename -h .

pro_replace [options] searchstring replacestring files
Replaces in all files the searchstring with the replacestring.
USE WITH EXTREME CAUTION
See also pro_replace -h .

pro_resume_feature
This script scans your latest model info file for suppressed
features and creates a trail file which resumes the first suppressed
feature found.
Use with mapkey.

pro_sendmail
Send a mail to yourself. Usefull if you are working on two
stations at the same time and the other station is busy with
a large assembly. If you type in the mapkey for this script on
the other station you will automatically receive a mail on
your current station when the other station is ready.
Being called from the utilities menu in Pro/ENGINEER.

pro_sceneviewer
Start SceneViewer with latest Inventor file in your current directory.
Being called from the utilities menu in Pro/ENGINEER.

pro_scrsave
Creates an image of your main Pro/E window regardless of its size.
Uses xwininfo to determine its size and scrsave to make a snapshot.
Being called from the utilities menu in Pro/ENGINEER.
Uses objname_from_layerinf.
See also pro_scrsave -h .

pro_status
Run prostatus remote on the NLO-server
Configure: NLO-server

pro_trail_retrieve
Start a window terminal and show all the models AND their directories
from your current Pro/E session. This will give you information on where
a model is being retrieved from. Uses trail_retrieve.
Being called from the utilities menu in Pro/ENGINEER.

pro_version files
pro_version shows the Pro/ENGINEER version from which this model has
been stored.
e.g. You can use the following command to find models which
were stored with a specific Pro/E version (9447):
pro_version * | grep 9447 | awk '{print $1}'
See also pro_version -h .

pro_wait_flush
This script runs pro_flush unitl it succeeds. It will stop after
a number of retries.
Uses pro_flush

pro_where_used_inf_file
Run where_used_inf_file in a window terminal.
Being called from the utilities menu in Pro/ENGINEER.

pro_winterm
Start a window terminal in your current directory.
Being called from the utilities menu in Pro/ENGINEER.

ps_add_date [options] file
Add the date and time to a Postscript file
Being used by plot command
Configure: date format
See also ps_add_date -h .

ps_2_rgb [options] files
Converts a PostScript file to a SGI rgb picture.
Uses the Netpbm utilities.
See also ps_2_rgb -h .

ps_change_background [options] file1 [file2]
ps_change_background changes the background value of a
Postscript file of a Shaded Pro/ENGINEER image.
See also ps_change_background -h .

ps_pen_width
Change the pen width of a PostScript file.
See also ps_pen_width -h .

ps_rotate
Rotate a postscript file.
See also ps_rotate -h .

ps2device device files
Converts a PostScript file to a new file with the given
devicename.
Usess ghostscript 3.33.
See also ps2device -h .

ps2rgb [options] files
Converts a PostScript file to a SGI rgb picture.
Uses GhostScript 3.33.
See also ps2rgb -h .

pstorgb [options] files
converts a PostScript file to a SGI rgb picture.
Uses psrender.
See also pstorgb -h .

purge_database [options] database
Script to purge a Pro/PDM Database by running trail files.
It will first create a listing of all models to purge and then
restart pdm and purge them in not too large batches. It will first
purge all drawings, then all layouts, then all assemblies and
finally all parts.
Uses check_dbasenr.
See also purge_database -h .

remove_if_proe_created files
Move the files to your dumpster directory if they appear to be
created by Pro/ENGINEER. I created this script so the cleanup
routines would not accidentally erase files which are not related
to Pro/E. If this script gives an error message on a Pro/E related
file you will have to edit the script to make it recognize the
file.
See also remove_if_proe_created -h .

rename_info_file
This script renames the latest standard info files like
feature.lst and rels.inf to the objectname deriven from
objname_from_inf.
Uses objname_from_inf.

rename_to_dos [options] files
This script renames files to DOS legal names (8.3).
See also rename_to_dos -h .

restore_proe_names [options]
Restores files to their original Pro/E names. The script was
written for a company which accidentally had all the long
UNIX-like names renamed to DOS-like (8 dot 3) names.
See also restore_proe_names -h .

search [options] string
Searches all Pro/E search-path directories for filenames with
the given string.
See also search -h .
Configure: where to find current config.pro

show_header files
Show the header of a Pro/E file.
See also show_header -h .

sort_layer_inf [file]
Sorts a layer info file by feature number.

srch [options] name
Search recursively for filenames in which this name is used.
See also srch -h .

strip_pdm_data [options] [files]
Removes all Pro/PDM data from all Pro/E models in your
current directory.
See also strip_pdm_data -h .

to_flop [options] files
Copy files to /floppy directory. Filenames are translated to dos
conventions.
See also to_flop -h .
Configure: Server machine for floppy drive.

trail_retrieve [dir]
Give a listing of your current trailfile and show all the models
AND their directories from that Pro/E session.
Configure: where to find trail file

where_used model_name_without_extension
Search recursively for other Pro/E models in which this model_name
is used.
See also where_used -h .

where_used_inf_file
Scan the latest layer info file for the model name and run
where_used -c model_name.

wu_ref [options] name
This script runs where_used and for each file found it
performs model_ref.
All commandline parameters are directed to where_used with the
-a option added (scan in assembly's).
See also wu_ref -h .