See also entry in DESCRIPTION file
Usage: model_ref [options] files
model_ref shows the external references of the given files.
options: -h => this help screen
-g => find generic models (use with commandline
*.prt.* and/or *.asm.*)
-m => show material
(NULL means material has not been set)
-d => disable default action (use with -m).
Unless the -g option is given, output is given as follows:
file: REFERENCE_NAME (TYPE COUNT DEPENDANT_TYPE)
where: file is the filename
REFERENCE_NAME is the model to which a reference exist
TYPE is the model type (ASSY, PART, LAYOUT, FORMAT)
COUNT is the number of items
DEPENDANT_TYPE is the model status (NORMAL, SUPPRESSED, REFERENCE)
COUNT and DEPENDANT_TYPE are not given for drawings.
If the dependant type is SUPPRESSED the bom_count might be incorrect.
If you get UNKNOWN TYPES or UNKNOWN DEPENDANT_TYPES please try to find
out what kind of models or what kind of dependancies your dealing with
and mail this to me so I can debug the script.
Author: Olaf Corten, the Netherlands
E-Mail: olafc@molding.fico.nl or ocorten@knoware.nl
################################################################################
# History:
#
# 19990602 Fixed PDM renamed drawing dependencies (old_name!new_name).
# 19990219 Changed SCRIPTS_DIR extraction.
# 19980828 Added -d option. Material option now more stable.
# 19980805 Added tail -1 to force only one name to show up. Errors occured
# for parts which density was set after a material was assigned.
# 19971030 Fixed for layouts.
# 19970820 Added dep_type_code for drawings to show only the drawing models.
# 19970528 Fixed "awk: record `+@ASM0001 (ASSY)+@1...' too long" error. Can now
# also display large assemblies.
# 19970310 Fixed bug: material option caused some problems.
# 19970225 Added material option
# 19970212 Added check for CODE_NUMBER. Reconfigured output. Added -g option.
# 19960723 Changed SCRIPTS_DIR setting.
# 19960314 Added display of bom_count and dependant type
# 19951215 Name changed to model_ref
# 19951013 Added SCRIPTS_DIR
# 19950501 Added retrieval of model_code and model_type.
# 1st version: 1994
#
# Note: Uses script show_header
#
################################################################################
|