BasicScanCommand Members
Z: Required Long that indicates the Z value of the bounday point
Remarks
This function works with patch scans. Use the boundarypointcount property to set the number of boundary points.
BasicScan.SetFilterParams
Syntax
Return Value=expression.SetFilterParams (dCutAxisLocation, nAxis, dMaxIncrement, dMinIncrement, dMaxAngle, dMinAngle)
Return Value: This method returns a boolean value. Boolean returns true if the function succeeds, false if it fails.
expression: Required expression that evaluates to a PC-DMIS BasicScanCommand object.
dCutAxisLocation: Not used
nAxis: Required Long that sets the cut axis. It is used only for axis filters. For axis filters, 0 means the X axis, 1 means the Y-axis, and 2 means the Z-axis.
dMaxIncrement: Required Double that sets the maximum increment. For fixed-length filters, this is simply the fixed increment
dMinIncrement:. Required Double that sets the minimum increment.
dMaxAngle: . Required Double that sets the maximum angle.
PC-DMIS Basic Language Reference Automation • 195 dMinAngle: . Required Double that sets the minimum angle.
Remarks
Return Value=expression.SetHitParams (nInitSamples, nPermSamples, dSpacer, dIndent, dDepth)
Return Value: This method returns a boolean value. Boolean returns true if the function succeeds, false if it fails.
expression: Required expression that evaluates to a PC-DMIS BasicScanCommand object.
nInitSamples: Required Long that sets the number of initial sample hits for the hits in this scan. It is ignored for basic hits and vector hits.
nPermSamples: Required Long that sets the number of permanent sample hits for the hits in this scan. It is ignored for basic hits and vector hits.
dSpacer: Required Double that sets the spacing of the sample hits from the hit center. It is ignored for basic hits and vector hits.
dIndent: Required Double that sets the indent of the sample hits from the hit center.
It is ignored for basic hits, vector hits, and surface.
dDepth: Required Double that sets the depth of the sample hits from the hit center. It is ignored for basic hits, vector hits, and surface.
BasicScan.SetMethodParams
Syntax
Return Value=expression.SetMethodParams (bIn, bCenteringType, nCenteringDirection, dDiameter, dArcAngle, dDepth, dPitch)
Return Value: This method returns a boolean value. Boolean returns true if the function succeeds, false if it fails.
expression: Required expression that evaluates to a PC-DMIS BasicScanCommand object.
bIn: Required variable that sets 0 for Inside scans, 1 for Outside scans, nd 2 for Plane Circle scans.
bCenteringType: Required Variable for Centering Scans that sets 0 for Axis Centering and 1 for Plane centering.
nCenteringDirection: Required Long variable that sets +1 for measurement with the direction of the probe and –1 for against the direction of probe.
196 • Automation PC-DMIS Basic Language Reference dDiameter: Required Double variable that sets the diameter of the circle or cylinder scan, and zero otherwise.
dArcAngle: Required Double variable that sets arc angle for circle and cylinder scans.
dDepth: Required Double variable that sets the depth for circle and cylinder scans, and zero otherwise.
dPitch: Required Double variable that sets Pitch for Cylinder scans.
Remarks
Method SetMethodParams (bIn, bCenteringType,
nCenteringDirection, dDiameter, dArcAngle, dDepth, dPitch)
Linear None
Edge None
Circle bIn, , , dDiameter, dArcAngle, dDepth Cylinder bIn, , , dDiameter, dArcAngle, dDepth, dPitch Str Line None
Center , bCenteringType, nCenteringDirection
BasicScan.SetMethodPointData
Syntax
Return Value=expression.SetMethodPointData (MethodStart, MethodEnd, MethodInitTouch, MethodEndTouch, MethodInitDir, MethodCutPlane)
Return Value: This method returns a boolean value. Boolean returns true if the function succeeds, false if it fails.
expression: Required expression that evaluates to a PC-DMIS BasicScanCommand object.
MethodStart: Required PointData object that sets the MethodStart property.
MethodEnd: Required PointData object that sets the MethodEnd property.
MethodInitTouch: Required PointData object that sets the MethodInitTouch property.
MethodEndTouch: Required PointData object that sets the MethodEndTouch property.
MethodInitDir: Required PointData object that sets the MethodInitDir property.
MethodCutPlane: Required PointData object that sets the MethodCutPlane property.
Remarks
If scan is a BasicScanCommand object, and MS, ME, MIT, MET, MID,and MCP are all Dimensioned as Object, the following are equivalent:
scan.SetMethodParams MS,ME,MIT,MET,MID,MCP set scan.MethodStart = MS
set scan.MethodEnd = ME set scan.MethodInitTouch = MIT set scan.MethodEndTouch = MET set scan.MethodInitDir = MID set scan.MethodCutPlane = MCP
PC-DMIS Basic Language Reference Automation • 197 This method is provided as a shortcut to setting these commonly used properties all at once.
BasicScan.SetNomsParams
Syntax
Return Value=expression.SetNomsParams (dFindNomsTolerance, dSurfaceThickness, dEdgeThickness)
Return Value: This method returns a boolean value. Boolean returns true if the function succeeds, false if it fails.
expression: Required expression that evaluates to a PC-DMIS BasicScanCommand object.
dFindNomsTolerance: Required Double that sets the Find Noms tolerance.
dSurfaceThickness: Required Double that sets the surface thickness.
dEdgeThickness: Required Double that sets the edge thickness.
Remarks
BasicScan.SetParams
Syntax
Return Value=expression.SetParams (Method, Filter, OperationMode, HitType, NominalMode, BoundaryCondition)
Return Value: This method returns a boolean value. Boolean returns true if the function succeeds, false if it fails.
expression: Required expression that evaluates to a PC-DMIS BasicScanCommand object.
Method: Required Long that sets the Method property.
Filter: Required Long that sets the Filter property.
OperationMode: Required Long that sets the OperationMode property.
HitType: Required Long that sets the HitType property.
NominalMode: Required Long that sets the NominalMode property.
BoundaryCondition: Required Long that sets the BoundaryCondition property.
Remarks
If scan is a BasicScanCommand object, and M, F, O, H, N,and B are all Dimensioned as Object, the following are equivalent:
scan.SetParams M, F, O, H, N, B
This method is provided as a shortcut to setting these commonly used properties all at once.
198 • Automation PC-DMIS Basic Language Reference