PC-DMIS 2021.2 Object Library
GetFeatData Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
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.
XYZ
Type of data to put in xyz.
IJK
Type of data to put in ijk.
PCDLRN ActiveX DLL > OldBasic Object : GetFeatData Method

Glossary Item Box

Description

Gets feature data from command with specified ID

Syntax

Visual Basic
Public Sub GetFeatData( _
   ByVal ID As String, _
   ByVal buffer As FeatData, _
   ByVal dtype As PCDMEASTHEO, _
   ByVal XYZ As XYZTYPES, _
   ByVal IJK As IJKTYPES _
) 

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
ValueDescription
PCD__MEAS 
PCD_THEO 
The type of data to retrieve.
XYZ
ValueDescription
PCD_BALLCENTER 
PCD_CENTROID 
PCD_ENDPOINT 
PCD_MIDPOINT 
PCD_STARTPOINT 
Type of data to put in xyz.
IJK
ValueDescription
PCD__VECTOR 
PCD_SLOTVECTOR 
PCD_SURFACEVECTOR 
Type of data to put in ijk.

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

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