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,n1,n2,n3,n4,n5,n6,n7

ITERATEANDREPIERCECAD=YES,TOLERANCE=n8,MAX ITERATIONS=n9,

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).

n1,n2,n3 - Translation in X,Y,Z

n4 - Rotation in the XY plane

n5 - Rotation in YZ plane

n6 - 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.

USE SCALING= This option is available if TOG2 is set to LEAST_SQR. If set to YES, PC-DMIS computes a transformation (rotation and translation) and a scale factor to optimally match nominal data to the scaled measured data. See "Description of the Best Fit Alignment Dialog Box" where the Use Scaling check box is discussed.

n7= This is the scale factor. It only appears if USE SCALING is set to YES.

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. MEAS_X, MEAS_Y, and MEAS_Z are the X,Y,Z values for the measured center of rotation. THEO_X, THEO_Y, and THEO_Z are the theoretical X,Y,Z values for the theoretical center of rotation.

ITERATEANDREPIERCECAD= If set to YES, PC-DMIS will perform an Iterative Best Fit alignment by piercing the CAD geometry and adjusting the feature nominals with each iteration, using TOLERANCE= and ITERATIONS= values to control the result. If set to NO, PC-DMIS does a single best fit alignment. See "Description of the Best Fit Alignment Dialog Box" where the Use Scaling check box is discussed.

TOLERANCE=n8. This is the tolerance value for performing an iterate and repierce cad operation. This only appears if ITERATEANDREPIERCECAD is set to YES.

ITERATIONS=n9. This is the maximum number of times the best fit alignment algorithm iterates when performing an iterate and repierce cad operation. This only appears if ITERATEANDREPIERCECAD is set to YES.

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 displays 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 displays only the ID of the input feature, like this:

ID = CIR2

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