#### 3D Best Fit Command Line Format

The Edit window command line for the Best Fit 3D option reads:

ALIGNMENT/BF3D,TOG1,CREATE WEIGHTS=YES,TOG2,USE SCALING=YES,0,0,0,0,0,0,1

CENTER OF ROTATION,MEAS_X,MEAS_Y,MEAS_Z,THEO_X,THEO_Y,THEO_Z

SHOWALLINPUTS=YES,SHOWALLPARAMS=YES

ID =

Available Fields:

"TOG1" This field allows you to switch between the available types of best fits.

"TOG2" This field allows you to switch between the available types of constraints for the 3D alignment. Available options are: ROTONLY (rotation only), ROTANDTRANS (rotation and translation), and TRANSONLY (translation only). The six number values following USE SCALING are:

- Translation in X

- Translation in Y

- Translation in Z

- Rotation in the XY plane

- Rotation in YZ plane

- Rotation in ZX plane

Note that the values for translation and rotation are relative to the current active alignment, and the angles are always in degrees. If seven number values are visible then the seventh number is the scale factor.

CENTER OF ROTATION This field and the measured and theoretical XYZ values associated with it, represent the center of rotation. They only appear if ROTONLY or ROTANDTRANS is used for the TOG2 field.

SHOWALLINPUTS= This option lets you determine whether or not the alignment code block displays the feature inputs used to create the alignment. Available options are YES or NO.

SHOWALLPARAMS= This option lets you determine whether or not the alignment code block displays all the parameters for the feature inputs. Available options are YES or NO.

If set to YES, then PC-DMIS will display this information for each input feature: Feature ID, Feature Type, Dimension ID, Feature Weight, Feature Use.

For example, it might look something like this:

ID = CIR2,Circles,LOC12,2.000000,YES

If set to NO, then PC-DMIS will display only the ID of the input feature, like this:

ID = CIR2

ID= Each line starting with "ID=" represents an input feature used in the alignment.