PC-DMIS 2021.1 Object Library
SetHit2 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. The possible enumerated values for all, measured, theoretical, or targets.
CoordSystem
 Enumerated value that indentifies the type of coordinate system to use (Cad, Machine, Part, PartMM3, or Polar).
Alignment
String value representing the ID of the alignment to use.
Workplane
Optional parameter with the ENUM_PLANE_TYPE enumeration that denotes the workplane.
X
X value for the point / vector being set.
Y
Y value for the point / vector being set.
Z
Z value for the point / vector being set.
PCDLRN ActiveX DLL > FeatCmd Object : SetHit2 Method

Glossary Item Box

Description

This method works just like the SetHit method; it sets the hit data of a specified hit, but it uses a specified coordinate system and alignment.

Syntax

Visual Basic
Public Function SetHit2( _
   ByVal index As Long, _
   ByVal DataType As FHITDATA_TYPES, _
   ByVal MeasOrTheo As FDATA_DATASET, _
   ByVal CoordSystem As FDATA_COORDSYS, _
   ByVal Alignment As String, _
   ByVal Workplane As ENUM_PLANE_TYPE, _
   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. The possible enumerated values for all, measured, theoretical, or targets.
CoordSystem
ValueDescription
FDATA_CAD 
FDATA_MACHINE 
FDATA_PART 
FDATA_PARTMM3 
FDATA_POLAR 
 Enumerated value that indentifies the type of coordinate system to use (Cad, Machine, Part, PartMM3, or Polar).
Alignment
String value representing the ID of the alignment to use.
Workplane
ValueDescription
PLANE_BACK 
PLANE_BOTTOM 
PLANE_FRONT 
PLANE_LEFT 
PLANE_RIGHT 
PLANE_TOP 
Optional parameter with the ENUM_PLANE_TYPE enumeration that denotes the workplane.
X
X value for the point / vector being set.
Y
Y value for the point / vector being set.
Z
Z value for the point / vector being set.

See Also

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