PC-DMIS 2021.2 Object Library
GetDimData Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
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

PCDLRN ActiveX DLL > OldBasic Object : GetDimData Method

Glossary Item Box

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
ValueDescription
PCD_A 
PCD_D 
PCD_DD 
PCD_DF 
PCD_L 
PCD_M 
PCD_PA 
PCD_PD 
PCD_PR 
PCD_R 
PCD_RS 
PCD_RT 
PCD_S 
PCD_T 
PCD_TP 
PCD_V 
PCD_X 
PCD_Y 
PCD_Z 

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

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