Jump to content

Did You Know About the AutoCAD SETBYLAYER Command?


Recommended Posts

The AutoCAD Blog
Posted

Contributed by Autodesk Expert Elite and Autodesk Community member Tom Richardson

Have you ever referenced a drawing into another drawing, but the content isn’t showing the correct color, line weight, or line type based on the layer state in your current viewport/drawing? In this article, take a deep dive on how to resolve this issue using the AutoCAD SETBYLAYER command.

The Situation

You receive a drawing from another user/department, such as an exported CAD file from Revit. You download the drawing and then set the layer colors and visibility based on the CAD standards for your project. Unfortunately, some content does not show the correct colors, linetypes, etc.

This image shows the received drawing with no layer color changes.

Screenshot of AutoCAD drawing with no color on layers

This next image shows how the drawing looks after changing all layer colors to color 1 (red). Compare this image with the previous image. Notice that the hatch objects and elevator still show their original color (yellow, blue, and purple) despite the layer color change. This is because the objects have forced colors set in their properties.

Screenshot of AutoCAD layers changed to red color

The Resolution

Use the SETBYLAYER command to reset the properties of objects in the drawing to ByLayer.

The Workflow

1. Open your copy of the AutoCAD drawing that you received.

AutoCAD drawing with layers

2. Thaw, turn layers on, and unlock all layers in the drawing.

3. With no objects selected, type SETBYLAYER and then press Enter.

SETBYLAYER-4.jpg

4. Review the active settings at the command line. See the Instructions for Changing Settings section below if you want to change the active settings.

SETBYLAYER-5.jpg

5. Select the objects you want to modify or type ALL and press Enter.

SETBYLAYER-6.jpg

6. After selecting the objects, confirm the number of objects selected and press Enter.

SETBYLAYER-7.jpg

7. You will then be asked if you want to change the ByBlock properties to ByLayer. The default response if you press Enter is Yes.

SETBYLAYER-8.jpg

8. You will then be asked if you want to include blocks. The default response if you press Enter is Yes.

SETBYLAYER-9.jpg

9. Confirm that the content in the drawing is now correctly showing the properties based on the current layer state.

SETBYLAYER-10.jpg

10. Use the Layer Previous command (LAYERP) to reset the layer state to the CAD Standards for your project and save the drawing.

Instructions for Changing Settings

A. Before selecting the objects for this command, type S and press Enter.

SETBYLAYER-11.jpg

B. In the SetByLayer Settings dialog, uncheck any properties you do not want to change to ByLayer and click OK. The options available to change are Color, Linetype, Lineweight, Material, Plot Style (if available), and Transparency.

SETBYLAYER-12.jpg

C. Continue using the command by selecting objects, as noted in Step 5 above.

Learn More

Enjoyed this article? Then check out the Autodesk Community for even more great content from talented users across Design and Make industries.

The post Did You Know About the AutoCAD SETBYLAYER Command? appeared first on AutoCAD Blog.

View the full article

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...