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 |
- PointData
- Required PointData object into which the data is stored.
- DataType
Optional enumerated or Long value.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 - TheoMeas
Optional Long that is one of FDATA_THEO, FDATA_MEAS, or FDATA_TARG.Value Description FDATA_ALL FDATA_MEAS FDATA_TARG FDATA_THEO 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.Value Description FDATA_CAD FDATA_MACHINE FDATA_PART FDATA_PARTMM3 FDATA_POLAR - 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.Value Description PLANE_BACK PLANE_BOTTOM PLANE_FRONT PLANE_LEFT PLANE_RIGHT PLANE_TOP
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.