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

Collapse All Expand All

Data
  Required PointData object from which the data is taken to set values in the corresponding object.

DataType
  Optional Long value. If no value is supplied, the default value is FDATA_CENTROID.

TheoMeas
  Optional Long value. 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.

  If no value is supplied, the default value is an empty string which causes the current alignment to be used.

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

# Description

Puts feature data relative to provided parameters This function returns TRUE if the data was successfully retrieved from expression, FALSE otherwise.

# Syntax

Visual Basic

    Public Function PutData( _
       ByVal Data 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

Data
  Required PointData object from which the data is taken to set values in the corresponding object.
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 Long value. If no value is supplied, the default value is FDATA_CENTROID.
TheoMeas

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

  Optional Long value. 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.

  If no value is supplied, the default value is an empty string which causes the current alignment to be used.

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

Boolean value.

# Remarks

Not every data type can be used with every feature type. Some data types take a single value, some data types take multiple values. Some data types take one or more depending on the feature. For example, a cone can take two diameters in the first and second data fields of the point object while the circle object only takes one diameter.

Use the FDATA_THEO flag if you want theoretical data, FDATA_MEAS if you want measured data

# See Also

FeatCmd Object | GetData Method

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.