PC-Dmis 2010 MR1 Object Library | Send comments on this topic. | See Object Hierarchy Chart
SetHit2 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. 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.

# Description

Sets hit data of specified hit

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

  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. The possible enumerated values for all, measured, theoretical, or targets.
CoordSystem

  Value | Description
  --- | ---
  FDATA_POLAR |
  FDATA_CAD |
  FDATA_PARTMM3 |
  FDATA_MACHINE |
  FDATA_PART |

  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

  Value | Description
  --- | ---
  PLANE_TOP |
  PLANE_RIGHT |
  PLANE_BACK |
  PLANE_BOTTOM |
  PLANE_LEFT |
  PLANE_FRONT |

  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

FeatCmd Object | SetHit Method

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.