Collapse All Expand All

PC-DMIS 2019 R1 Object Library |
GetData Method
See Also Send Topic Feedback | See Object Hierarchy Chart

PointData
  Required PointData object into which the data is stored.

DataType
  Optional enumerated or Long value.

TheoMeas
  Optional Long that is one of FDATA_THEO, FDATA_MEAS, or FDATA_TARG.

  If no value is supplied, the default value is FDATA_MEAS.

CoordSystem
  Optional Long that denotes the coordinate system in which to report. If no value is supplied, the default value is FDATA_PART.

AlignID
  Optional String that denotes what alignment to use. You can pass the empty string to denote the current alignment.

Workplane
  Optional parameter with the ENUM_PLANE_TYPE enumeration for the PARTMM3 and POLAR coordinate system to denote the workplane to be used.

PCDLRN ActiveX DLL > FeatCmd Object : GetData Method

Glossary Item Box

# Description

[Desc already exists]

# Syntax

Visual Basic
    Public Function GetData( _
       ByVal PointData As PointData, _
       ByVal DataType As FDATA_TYPES, _
       ByVal TheoMeas As FDATA_DATASET, _
       ByVal CoordSystem As FDATA_COORDSYS, _
       ByVal AlignID As String, _
       ByVal Workplane As ENUM_PLANE_TYPE _
    ) As Boolean

# Parameters

PointData
  Required PointData object into which the data is stored.
DataType

  Value | Description
  --- | ---
  FDATA_AB_ANGLES |
  FDATA_ANALOG_DEVIATIONS |
  FDATA_ANGLE |
  FDATA_ANGLE_VECTOR |
  FDATA_ANGLE2 |
  FDATA_AUTO_MOVE_DISTANCE |
  FDATA_CENTROID |
  FDATA_CORNER_RADIUS |
  FDATA_CORNER_VECTOR2 |
  FDATA_CORNER_VECTOR3 |
  FDATA_DEPTH |
  FDATA_DEVIATION |
  FDATA_DIAMETER |
  FDATA_ENDPOINT |
  FDATA_FLUSH |
  FDATA_FOCUS1 |
  FDATA_FOCUS2 |
  FDATA_GAP2 |
  FDATA_HEIGHT |
  FDATA_INDENT |
  FDATA_INDENT2 |
  FDATA_INDENT3 |
  FDATA_LENGTH |
  FDATA_MAJOR_AXIS |
  FDATA_MANSCAN_INCR_DIST |
  FDATA_MANSCAN_INCR_TIME |
  FDATA_MEASURE_VECTOR |
  FDATA_MIDPOINT |
  FDATA_MIN_CIRC_SCAN_DOWN |
  FDATA_MIN_CIRC_SCAN_INIT |
  FDATA_MINOR_AXIS |
  FDATA_OFFSET |
  FDATA_ORG_HIT_VECTOR |
  FDATA_PIN_DIAMETER |
  FDATA_PIN_VECTOR |
  FDATA_PUNCH_VECTOR |
  FDATA_REPORT_SURF_VECTOR |
  FDATA_REPORT_VECTOR |
  FDATA_ROTAB_ANGLE |
  FDATA_SCANSEG_END |
  FDATA_SCANSEG_START |
  FDATA_SLOT_VECTOR |

  Example | Copy Code
  --- | ---
  FeatureCommand.PutData(LocSlotVector, FDATA_SLOT_VECTOR, FDATA_MEAS, FDATA_PART, "", PLANE_TOP) Command.PutText("0", MEAS_SLOTVEC_I, 1) Command.PutText("1", MEAS_SLOTVEC_J, 1) Command.PutText("0", MEAS_SLOTVEC_K, 1)

  FDATA_SNAP_CENTROID |
  FDATA_SPACER |
  FDATA_STARTPOINT |
  FDATA_SURFACE_VECTOR |
  FDATA_SURFACEVECTOR2 |
  FDATA_SURFACEVECTOR2NONORM |
  FDATA_TARGET |
  FDATA_THICKNESS |
  FDATA_TIPRADIUS |
  FDATA_UPDATE_VECTOR |
  FDATA_VECTOR |
  FDATA_VERTEX |
  FDATA_WIDTH |
  FDATA_WIDTH2 |

  Optional enumerated or Long value.
TheoMeas

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

  Optional Long that is one of FDATA_THEO, FDATA_MEAS, or FDATA_TARG.

  If no value is supplied, the default value is FDATA_MEAS.

CoordSystem

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

  Optional Long that denotes the coordinate system in which to report. If no value is supplied, the default value is FDATA_PART.
AlignID
  Optional String that denotes what alignment to use. You can pass the empty string to denote the current alignment.
Workplane

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

  Optional parameter with the ENUM_PLANE_TYPE enumeration for the PARTMM3 and POLAR coordinate system to denote the workplane to be used.

# Return Type

This function returns TRUE if the data was successfully retrieved from FeatCmd object, FALSE otherwise.

# Remarks

Not every data type can be used with every feature type. Some data types return a single value, some data types return multiple values. Some data types return both depending on the feature. For example, a cone will return two diameters in the first and second data fields of the point object while only returning one diameter for a circle object. Use the FDATA_THEO flag if you want theoretical data, FDATA_MEAS if you want measured data.

# See Also

FeatCmd Object | FeatCmd Members | PutData Method

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