PC-DMIS 2019 R2 Object Library
SetHit Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
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.
PCDLRN ActiveX DLL > FeatCmd Object : SetHit Method

Glossary Item Box

Description

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
ValueDescription
FHITDATA_BALLCENTER 
FHITDATA_CENTROID 
FHITDATA_VECTOR 
Enumerated data type that specifies what type of data you are setting. This can be Centroid, Vector, or BallCenter.
MeasOrTheo
ValueDescription
FDATA_ALL 
FDATA_MEAS 
FDATA_TARG 
FDATA_THEO 
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

Copyright © 2019. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.