Hide Table of Contents
GetDimension2 Method (IDisplayDimension)

Gets the model dimension that was used to create this display dimension.

.NET Syntax

Visual Basic (Declaration) 
Function GetDimension2( _
   ByVal Index As Integer _
) As Dimension
Visual Basic (Usage) 
Dim instance As IDisplayDimension
Dim Index As Integer
Dim value As Dimension
value = instance.GetDimension2(Index)
Dimension GetDimension2( 
   int Index
Dimension^ GetDimension2( 
&   int Index


  • 0 to get the first chamfer display dimension

  • 1 to get the second chamfer display dimension

Return Value




The Index argument is valid for chamfer display dimensions only. If the display dimension is not a chamfer display dimension, then Index is ignored. To get both chamfer display dimensions, you must call this property twice; specify 0 for Index in the first call and 1 for Index in the second call.


SolidWorks can display a dimension more than once. For example, a base-extrude dimension can be brought into three different views on a drawing. These three dimensions are referred to as display dimensions and are represented by the DisplayDimension object in the SolidWorks API. The original base-extrude dimension is represented by the Dimension object in the SolidWorks API.


See Also


SolidWorks 2008 FCS, Revision Number 16.0

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   GetDimension2 Method (IDisplayDimension)
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.