Jump to content

Set background color of a patterned hatch to "ByLayer" or "ByBlock"


Vitalie Robu

Recommended Posts

Hello, is there a way, or a LISP, to set the background color of a pattern hatch (for ex.: AR-SAND) to ByLayer or ByBlock? There is this option only for the main color of the pattern hatch, but not for the background.

 

I want to be able to change the background color of a pattern hatch without hatch editing. For example, I have a few copies of the same block with a AR-SAND hatch where the main color is 250 and a predefined background color, and based on their position the type of block is defined. So I want to chose one type of these blocks and change the color of the background. If it would have been a SOLID hatch, that would be easy to do(please see attached screenshot), but it is different for the pattern hatch.

 

Thanks'! 

Screenshot 2023-09-27 112104.jpg

Link to comment
Share on other sites

Just realized that one workaround to fix it is to get inside the block, remove the background for the pattern hatch (AR-SAND) and apply a second hatch SOLID which will have the option to be changed ByLayer or ByBlock. So therefore there will be 2 hatches inside the block.

 

Let me know if there is a better way.

 

Thanks'!

Edited by Vitalie Robu
Link to comment
Share on other sites

Here's another method that may be more efficient if you want to change the background color for all blocks of the same type. This method is to use the BLOCKEDIT command to edit a block.

Link to comment
Share on other sites

25 minutes ago, BIGAL said:

Dont forget draw order.

That is essential, thank you. Also, please let me know if there might be another way to do it. Thanks'!

Link to comment
Share on other sites

2 hours ago, enrili said:

Here's another method that may be more efficient if you want to change the background color for all blocks of the same type. This method is to use the BLOCKEDIT command to edit a block.

Obvious call, however I think you might have missed my message. The block will stay the same for all different types, and I want to be able to change the background of the color controlling it outside the block.

Link to comment
Share on other sites

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...