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

Collapse All Expand All

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.

# 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

  Value | Description
  --- | ---
  PCD_THEO |
  PCD__MEAS |

  The type of data to retrieve.
XYZ

  Value | Description
  --- | ---
  PCD_CENTROID |
  PCD_BALLCENTER |
  PCD_STARTPOINT |
  PCD_ENDPOINT |
  PCD_MIDPOINT |

  Type of data to put in xyz.
IJK

  Value | Description
  --- | ---
  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

OldBasic Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.