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

Collapse All Expand All

index
  Integer representing the hit number.

DataType
  Enumerated data type that specifies what type of data you are setting. This can be Centroid, Vector, or BallCenter.

MeasOrTheo
  Enumerated value that indentifies the portion of the hit getting set.

X
  The X value for the point / vector being set.

Y
  The Y value for the point / vector being set.

Z
  The Z value for the point / vector being set.

# Description

Sets hit data of specified hit using part coordinates relative to the current alignment Sets the hit data of a specified hit. It uses the part coordinate system relative to the current alignment.

# Syntax

Visual Basic

    Public Function SetHit( _
       ByVal index As Long, _
       ByVal DataType As FHITDATA_TYPES, _
       ByVal MeasOrTheo As FDATA_DATASET, _
       ByVal X As Double, _
       ByVal Y As Double, _
       ByVal Z As Double _
    ) As Boolean

# Parameters

index
  Integer representing the hit number.
DataType

  Value | Description
  --- | ---
  FHITDATA_CENTROID |
  FHITDATA_VECTOR |
  FHITDATA_BALLCENTER |

  Enumerated data type that specifies what type of data you are setting. This can be Centroid, Vector, or BallCenter.
MeasOrTheo

  Value | Description
  --- | ---
  FDATA_THEO |
  FDATA_MEAS |
  FDATA_TARG |
  FDATA_ALL |

  Enumerated value that indentifies the portion of the hit getting set.
X
  The X value for the point / vector being set.
Y
  The Y value for the point / vector being set.
Z
  The Z value for the point / vector being set.

# Return Type

Boolean value. This function returns TRUE if the hit or vector gets successfully set, FALSE otherwise.

# See Also

FeatCmd Object | SetHit2 Method

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.