Hide Table of Contents
GetChamferUnits Method (IDisplayDimension)

Gets the local units of measurement for a chamfer display dimension.

.NET Syntax

Visual Basic (Declaration) 
Function GetChamferUnits( _
   ByRef LengthUnit As Integer, _
   ByRef AngularUnit As Integer _
) As Boolean
Visual Basic (Usage) 
Dim instance As IDisplayDimension
Dim LengthUnit As Integer
Dim AngularUnit As Integer
Dim value As Boolean
value = instance.GetChamferUnits(LengthUnit, AngularUnit)
bool GetChamferUnits( 
   out int LengthUnit,
   out int AngularUnit
bool GetChamferUnits( 
&   [Out] int LengthUnit,
&   [Out] int AngularUnit


Unit of length as defined in swLengthUnits_e
Unit of angle as defined in swAngleUnits_e

Return Value

True if successful, false if not



The unit display setting of a chamfer display dimension is controlled by a value stored in one of two places: on the owning document or on the individual display dimension. Use IDisplayDimension::GetUseDocUnits to determine whether the units settings are local or from the owning document. If IDisplayDimension::GetUseDocUnits returns true, then the units settings are from the owning document, and this API returns -1 for both length and angle units of measurement.

Local unit information for a chamfer display dimension is in force when Override Units is selected on the Other tab of the dimension's PropertyManager page. If Override Units is selected, then this API returns units as defined in swLengthUnits_e (length measurement) and swAngleUnits_e (angle measurement). 


See Also


SolidWorks 2011 FCS, Revision Number 19.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:   GetChamferUnits 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.