PC-Dmis 2010 MR1 Object Library | Send comments on this topic. | See Object Hierarchy Chart
SetMethodParams Method
See Also

Collapse All Expand All

bIn
  Required variable that sets 0 for Inside scans, 1 for Outside scans, and 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.

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.

# Description

Sets the scan method parameters This method is provided as a shortcut to set these commonly used scan parameters all at once.

# Syntax

Visual Basic

    Public Function SetMethodParams( _
       ByVal bIn As ENUM_SCAN_INOUT_TYPES, _
       ByVal bCenteringType As Boolean, _
       ByVal nCenteringDirection As Long, _
       ByVal dDiameter As Double, _
       ByVal dArcAngle As Double, _
       ByVal dDepth As Double, _
       ByVal dPitch As Double _
    ) As Boolean

# Parameters

bIn

  Value | Description
  --- | ---
  SCAN_INNER | Inside scans
  SCAN_OUTER | Outside scans
  SCAN_PLANAR | Plane Circle scans

  Required variable that sets 0 for Inside scans, 1 for Outside scans, and 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.
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.

# Return Type

Boolean value. Boolean returns true if the function succeeds, false if it fails.

# Example

Method | SetMethodParams (bIn, bCenteringType, nCenteringDirection, dDiameter, dArcAngle, dDepth, dPitch)
--- | ---
Linear | None
Edge | None
Circle | bIn, , , dDiameter, dArcAngle, dDepth
Cylinder | bIn, , , dDiameter, dArcAngle, dDepth, dPitch
Straight Line | None
Center | , bCenteringType, nCenteringDirection

# See Also

BasicScan Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.