core

#### 2D Best Fit Command Line Format

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

ALIGNMENT/BF2D,TOG1,TOG2,CREATE WEIGHTS=NO,TOG3,USE SCALING=YES,n1,n2,n3,n4,n5

ITERATEANDREPIERCECAD=YES,TOLERANCE=n6,MAX ITERATIONS=n7,

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 workplanes. The current workplane should be displayed.

"TOG2" This field allows you to switch between the available types of best fits: LEAST_SQR, VECTOR_LST_SQR, MIN_MAX, VECTOR_MIN_MAX. See "The Best Fit Alignment Methods" for information.

CREATE WEIGHTS= This option lets you determine whether or not PC-DMIS creates weights for the features used in the best fit alignment. Available options are YES or NO. The created weights correspond to tolerances on the features used in the alignment. See "Feature Weights".

"TOG3" This field determines the degrees of freedom for the 2D alignment. Available options are: ROTONLY (rotation only), ROTANDTRANS (rotation and translation), and TRANSONLY (translation only).

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.

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

n4= The angle offset value.

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

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=n6. This is the tolerance value for performing an iterate and repierce cad operation. This only appears if ITERATEANDREPIERCECAD is set to YES.

ITERATIONS=n7. 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.

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.

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 will display only the ID of the input feature

ID = CIR2

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