Olaf Corten's OCUS help page for create_instance_trail

Help and/or history for create_instance_trail

See also entry in DESCRIPTION file

Usage: create_instance_trail [options] file
 
 	This script has been designed to create instance models from a
	generic model.
	It can be used in the following modes:
	
	1 PART MODE:
	The script creates a trial file which creates a Pro/E model with
	geometry and without a family table for all instances of a given
	generic part file. 
	The Pro/E models will be created in a sub-dir called INST_MODELS.

	For each instance the following command sequence is generated:
		1	retrieve generic part
		2	set instance as generic
		3	change dir to INST_MODELS
		4	backup part
		5	rename part to instance name
		6	erase table
		7	save part
		8	change dir to original directory
		9	quit window

	2 DRAWING MODE:
	If you run this script in DRAWING mode a trail file will be created
	which copies a generic drawing of a generic part to an instance name
	with the generic part replaced by the instance.
	E.G.	With generic models like:
			gen.drw of gen.prt 
		the following drawings will be created:
			inst1.drw
			inst2.drw
			etc.


	options:	-h 	=>	this help screen 
			-m drw	=>	set mode to DRAWING mode
			   prt  =>	set mode to PART mode (default)
			-n	=>	in part mode skip copy of drawing.
			-i NAME =>	Only create models for instance: NAME

Author: Olaf Corten, olafc@molding.fico.nl or ocorten@knoware.nl


################################################################################
# History:
#
# 990419 Fixed bug for SUN: newest rev. not always found
#	 ('sort +2 -3n' changed to 'sort -n +2 -3')
# 970204 Fixed bug for SUN: newest rev. not always found (sort +2 -n =>
#	 sort +2 -3n)
# 961118 Changed /bin/split to /usr/bin/split (fix for non-SGI users)
# 960419 Output file no longer gets a third extension. (Release 16
#	 can't handle them).
# 960404 Fixed bugs for creating instances with drawings.
#	 Added -i option to give an instance name.
# first version: jan. 1996
#
################################################################################