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

Collapse All Expand All

ID
  The ID string of the dimension to access.

buffer
  A record variable of type DimData in which to put the retrieved values. See below for a description of the DimData structure.

dtype

  The type of data to retrieve for location or true position dimensions. Not needed for any other dimension type.

  For location: PCD_X, PCD_Y, PCD_Z, PCD_D, PCD_R, PCD_A, PCD_T, PCD_PA, PCD_PR, PCD_V, PCD_L

  For true position: PCD_X, PCD_Y, PCD_Z, PCD_DD, PCD_DF, PCD_PA, PCD_PR, PCD_TP

# Description

Get dimension data from dimension specified by ID

# Syntax

Visual Basic

    Public Sub GetDimData( _
       ByVal ID As String, _
       ByVal buffer As DimData, _
       ByVal dtype As DIMAXISTYPE _
    )

# Parameters

ID
  The ID string of the dimension to access.
buffer
  A record variable of type DimData in which to put the retrieved values. See below for a description of the DimData structure.
dtype

  Value | Description
  --- | ---
  PCD_X |
  PCD_Y |
  PCD_Z |
  PCD_D |
  PCD_R |
  PCD_A |
  PCD_T |
  PCD_PA |
  PCD_PR |
  PCD_V |
  PCD_L |
  PCD_DD |
  PCD_DF |
  PCD_TP |
  PCD_S |
  PCD_RS |
  PCD_RT |
  PCD_PD |
  PCD_M |

  The type of data to retrieve for location or true position dimensions. Not needed for any other dimension type.

  For location: PCD_X, PCD_Y, PCD_Z, PCD_D, PCD_R, PCD_A, PCD_T, PCD_PA, PCD_PR, PCD_V, PCD_L

  For true position: PCD_X, PCD_Y, PCD_Z, PCD_DD, PCD_DF, PCD_PA, PCD_PR, PCD_TP

# Remarks

The definition of the DimData record type is as follows:

Type DimData

Nom As Double
Plus As Double
Minus As Double
Meas As Double
Max As Double
Min As Double
Dev As Double
Out As Double
Dev_Angle As Double
Bonus As Double

End Type

Note: The GetDimData function may not be called mid block.

Note: The GetDimData function should only be called on dimensions. It is up to the user to make sure that the ID string passed in does not belong to a feature or an alignment. For retrieving data from features, use GetFeatData.

# See Also

OldBasic Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.