Hide Table of Contents
LayerOverride Property (ISketchPoint)

Gets or sets whether the sketch point 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 ISketchPoint
Dim value As System.Integer
instance.LayerOverride = value
value = instance.LayerOverride
System.int LayerOverride {get; set;}
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)


Layers are supported only in drawing documents.

In drawing documents, sketch points can be created on a layer that has specific visual properties. By default, the sketch point inherits the visual properties defined by the layer. However, for a specific sketch point, these visual properties can be overridden.

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

Sketch points currently support only the color visual property. Therefore, the only bit value that is currently used by this function is 0x1, which indicates a color override. If this property returns 0x1, this indicates that the color of this sketch point has been specifically set by the end-user and may not match the default color value associated with this sketch point's layer. If you pass 0 to this property, then you are indicating that the color should be reset to use the default color associated with this item's layer.

Only set this property to reset specific visual properties back to the default visual properties of the owning layer. If you want to change or set specific values for the visual property for this item, use ISketchPoint::Color.

See Also


SOLIDWORKS 99, datecode 1999207

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 (ISketchPoint)
*   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) 2019 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.