PC-DMIS 2022.1 Object Library
PutData Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
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.
PCDLRN ActiveX DLL > FeatCmd Object : PutData Method

Glossary Item Box

Description

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
ValueDescription
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 Long value. If no value is supplied, the default value is FDATA_CENTROID.
TheoMeas
ValueDescription
FDATA_ALL 
FDATA_MEAS 
FDATA_TARG 
FDATA_THEO 
Optional Long value. If no value is supplied, the default value is FDATA_MEAS.
CoordSystem
ValueDescription
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.

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

Workplane
ValueDescription
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

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

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