Hide Table of Contents

Changing Entity Properties to 'ByLayer'

Use the SetByLayer command to change property overrides of specified entities to ByLayer.

It is good drawing practice to set entity properties such as LineColor, LineStyle, and LineWeight to ByLayer. For example, if you set the LineColor property of entities to ByLayer, the entities adopt the color assigned to the Layer on which you create them.

Note: You cannot change entity properties on locked Layers.

To set entity properties to ByLayer:

  1. Type SetByLayer at the command prompt.
  2. (Optional) Specify Settings. Then, in the dialog box, select the properties to change to ByLayer in subsequent command executions:
    • LineColor
    • LineStyle
    • LineWeight
    • PrintStyle (only in drawings which use named PrintStyles)
    • Transparency
  3. In the graphics area, specify entities to change properties to ByLayer.
  4. Press Enter.
  5. Specify whether to change ByBlock properties to ByLayer.
  6. Specify whether to apply the changes to Block entities.


Command: SetByLayer

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:   Changing Entity Properties to 'ByLayer'
*   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: 2021 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.