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.
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 |
- 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.Value Description FHITDATA_BALLCENTER FHITDATA_CENTROID FHITDATA_VECTOR - MeasOrTheo
Enumerated value that indentifies the portion of the hit getting set. The possible enumerated values for all, measured, theoretical, or targets.Value Description FDATA_ALL FDATA_MEAS FDATA_TARG FDATA_THEO - CoordSystem
Enumerated value that indentifies the type of coordinate system to use (Cad, Machine, Part, PartMM3, or Polar).Value Description FDATA_CAD FDATA_MACHINE FDATA_PART FDATA_PARTMM3 FDATA_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.Value Description PLANE_BACK PLANE_BOTTOM PLANE_FRONT PLANE_LEFT PLANE_RIGHT PLANE_TOP - 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.