Hide Table of Contents
LayerOverride Property (IDrawingComponent)

Gets or sets whether the drawing component has properties that override the default properties of the layer.

.NET Syntax

Visual Basic (Declaration) 
Property LayerOverride As System.Integer
Visual Basic (Usage) 
Dim instance As IDrawingComponent
Dim value As System.Integer
 
instance.LayerOverride = value
 
value = instance.LayerOverride
C# 
System.int LayerOverride {get; set;}
C++/CLI 
property System.int LayerOverride {
   System.int get();
   void set ( &   System.int value);
}

Property Value

Properties that have been overridden or should be overridden as defined in  swLayerOverride_e (see Remarks)

Example

Remarks

Currently, only SOLIDWORKS drawing documents support layers.

You should set this property only when you want to reset specific visual properties to the default visual properties of the owning layer. If you want to change or set specific values for the visual property of this component, use IDrawingComponent::Style or IDrawingComponent::Width.

In drawing documents, components can be created on a layer that has specific visual properties. By default, the component takes on the visual properties defined by the layer. However, for a specific component, you can override these visual properties (style or width).

When the component is not on any layer, this property returns an undefined value. You can use IDrawingComponent::Layer to determine the name of the layer that this component is on. If an empty string is returned by this property, then this property is not used.

When you get this property, the returned bit value indicates which properties have been overridden. The bit indicators are:

  • color = 0x1

  • style = 0x2

  • width = 0x4

Therefore, if the return value is returned as 2, then you know style has been specifically set for this component and might not match the default value associated with this component's layer.

When you set this property, the input bit value indicates which properties should maintain their current override values. Therefore, if the return value is passed as 0x4, you know width should keep its current override value and style should be reset to use the style settings for the component's layer. If you pass 0, all visual properties are reset to use the default settings of the component's layer.

See Also

Availability

SOLIDWORKS 2004 FCS, Revision Number 12.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:   LayerOverride Property (IDrawingComponent)
*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.