PC-Dmis 2010 MR1 Object Library | Send comments on this topic. | See Object Hierarchy Chart
GetData Method
See Also

Collapse All Expand All

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.

# Description

Gets feature data relative to provided parameters [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_CENTROID |
  FDATA_VECTOR |
  FDATA_DIAMETER |
  FDATA_STARTPOINT |
  FDATA_MIDPOINT |
  FDATA_ENDPOINT |
  FDATA_LENGTH |
  FDATA_MINOR_AXIS |
  FDATA_ANGLE |
  FDATA_DEVIATION |
  FDATA_SURFACE_VECTOR |
  FDATA_THICKNESS |
  FDATA_SPACER |
  FDATA_INDENT |
  FDATA_AUTO_MOVE_DISTANCE |
  FDATA_DEPTH |
  FDATA_TARGET |
  FDATA_ANGLE_VECTOR |
  FDATA_PUNCH_VECTOR |
  FDATA_PIN_VECTOR |
  FDATA_PIN_DIAMETER |
  FDATA_REPORT_VECTOR |
  FDATA_REPORT_SURF_VECTOR |
  FDATA_HEIGHT |
  FDATA_MEASURE_VECTOR |
  FDATA_UPDATE_VECTOR |
  FDATA_SNAP_CENTROID |
  FDATA_ANALOG_DEVIATIONS |
  FDATA_CORNER_RADIUS |
  FDATA_AB_ANGLES |
  FDATA_ORG_HIT_VECTOR |
  FDATA_ANGLE2 |
  FDATA_CORNER_VECTOR2 |
  FDATA_CORNER_VECTOR3 |
  FDATA_INDENT2 |
  FDATA_INDENT3 |
  FDATA_OFFSET |
  FDATA_TIPRADIUS |
  FDATA_ROTAB_ANGLE |
  FDATA_SURFACEVECTOR2 |
  FDATA_SURFACEVECTOR2NONORM |
  FDATA_FOCUS1 |
  FDATA_FOCUS2 |
  FDATA_VERTEX |
  FDATA_SCANSEG_START |
  FDATA_SCANSEG_END |
  FDATA_MANSCAN_INCR_DIST |
  FDATA_MANSCAN_INCR_TIME |
  FDATA_WIDTH2 |
  FDATA_MIN_CIRC_SCAN_INIT |
  FDATA_MIN_CIRC_SCAN_DOWN |
  FDATA_FLUSH |
  FDATA_GAP2 |
  FDATA_WIDTH |
  FDATA_MAJOR_AXIS |
  FDATA_SLOT_VECTOR |

  Optional enumerated or Long value.
TheoMeas

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

  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_POLAR |
  FDATA_CAD |
  FDATA_PARTMM3 |
  FDATA_MACHINE |
  FDATA_PART |

  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_TOP |
  PLANE_RIGHT |
  PLANE_BACK |
  PLANE_BOTTOM |
  PLANE_LEFT |
  PLANE_FRONT |

  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 | PutData Method

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.