Hide Table of Contents
LayerOverride Property (ISketchHatch)

Gets or sets whether the sketch hatch 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 ISketchHatch
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)


See the ISketchHatch examples.



Only drawing documents support layers.


Sketch hatches can be created on a layer that has specific visual properties. By default, the sketch hatches take on the visual properties defined by the layer. However, for specific sketch hatches, these visual properties can be overridden (see ISketchHatch::Color). This property gets or sets whether the default visual properties of the layer should be used by this sketch hatch.

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

Sketch hatches currently support only the color visual property. Therefore, the only bit value that will currently be used by this function would be 0x1 which indicates a color override. If this property returns 0x1, this indicates that the color of this sketch hatch has been specifically set by the user and may not match the default color value associated with this sketch hatch'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.

See Also


SOLIDWORKS 2000 FCS, Revision Number 8.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 (ISketchHatch)
*   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) 2015 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.