Hide Table of Contents
SetOverride Method (IDisplayDimension)

Sets whether to display the actual dimension value or to display another value, and, if so, that value.

.NET Syntax

Visual Basic (Declaration) 
Function SetOverride( _
   ByVal Override As System.Boolean, _
   ByVal Value As System.Double _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IDisplayDimension
Dim Override As System.Boolean
Dim Value As System.Double
Dim value As System.Boolean
 
value = instance.SetOverride(Override, Value)
C# 
System.bool SetOverride( 
   System.bool Override,
   System.double Value
)
C++/CLI 
System.bool SetOverride( 
&   System.bool Override,
&   System.double Value
) 

Parameters

Override
True to display a value other than the actual dimension value, false to display the actual value
Value
Value to display instead of the actual dimension value

Return Value

True if setting an override value is successful, false if not

Remarks

This method can only be used on a display dimension in a drawing. In a part or assembly, this method takes no action and returns false.

 

If Override is set to false, then the Value argument is ignored.

 

Use IDisplayDimension::GetOverride to get whether the actual dimension value or another value is displayed.   

 

Use IDisplayDimension::GetOverrideValue to get the value to display instead of the actual dimension value.

 

See Also



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:   SetOverride 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.