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 System.Integer, _
   ByRef AngularUnit As System.Integer _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IDisplayDimension
Dim LengthUnit As System.Integer
Dim AngularUnit As System.Integer
Dim value As System.Boolean
 
value = instance.GetChamferUnits(LengthUnit, AngularUnit)
C# 
System.bool GetChamferUnits( 
   out System.int LengthUnit,
   out System.int AngularUnit
)
C++/CLI 
System.bool GetChamferUnits( 
&   [Out] System.int LengthUnit,
&   [Out] System.int AngularUnit
) 

Parameters

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

Return Value

True if successful, false if not

Example

Remarks

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

Availability

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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetChamferUnits Method (IDisplayDimension)
*Comment:  
*   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:



x

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
x

Web Help Content Version: API Help (English only) 2016 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.