GetFeatData Method
Description
Gets feature data from command with specified ID
Syntax
Parameters
- ID
- The ID string of the feature to access.
- buffer
- A record variable of type FeatData in which to put the retrieved values. See below for a description of the FeatData structure.
- dtype
The type of data to retrieve.Value Description PCD__MEAS PCD_THEO - XYZ
Type of data to put in xyz.Value Description PCD_BALLCENTER PCD_CENTROID PCD_ENDPOINT PCD_MIDPOINT PCD_STARTPOINT - IJK
Type of data to put in ijk.Value Description PCD__VECTOR PCD_SLOTVECTOR PCD_SURFACEVECTOR
Return Type
The definition of the FeatData record type is as follows:
Type FeatData
X As Double
Y As Double
Z As Double
I As Double
J As Double
K As Double
Diam As Double
Length As Double
Angle As Double
Small_Diam As Double
Start_Angle As Double
End_Angle As Double
Start_Angle2 As Double
End_Angle2 As Double
F As Double
TP As Double
P1 As Double
P2 As Double
ID As String
End Type
Note: The GetFeatData function may not be called mid block.
Note: The GetFeatData function should only be called on measured, constructed, and auto features. It is up to the user to make sure that the ID string passed in does not belong to a dimension or an alignment. For retrieving data from dimensions, use GetDimData.
See Also