Hide Table of Contents
LayerOverride Property (ISplineParamData)

Gets the spline's properties that override the default properties of the layer.

.NET Syntax

Visual Basic (Declaration) 
ReadOnly Property LayerOverride As System.Integer
Visual Basic (Usage) 
Dim instance As ISplineParamData
Dim value As System.Integer
value = instance.LayerOverride
System.int LayerOverride {get;}
property System.int LayerOverride {
   System.int get();

Property Value

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



Layers are only supported in drawing documents.

Splines can be created on a layer that has specific visual properties. By default, the spline takes on the visual properties defined by the layer. However, for a specific spline, these visual properties can be overridden (see ISplineParamData::Color, ISplineParamData::LineStyle, and ISplineParamData::LineWidth). This  property gets or sets whether the default visual properties of the layer are used by this spline.

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

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

    • color = 0x1

    • style = 0x2

    • width = 0x4

Therefore, if the value was returned as 3, you know color and style have been specifically set for this item and might not match the default values associated with this item's layer.

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

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:   LayerOverride Property (ISplineParamData)
*   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) 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.