See the top rated post in this thread. Click here

Results 1 to 4 of 4

Thread: Change colour of all entities within a block

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2004-12
    Posts
    1
    Login to Give a bone
    0

    Default Change colour of all entities within a block

    Hi,

    We use blocks which have multiple colored entities within it. All entities are in zero layer and bylayer color, but some attributes are assigned magenta color. I need to make an autolisp program that would convert all these blocks into color 8.

    Can someone give me hints how it can be done?

    Thanks,
    Rajarshi

  2. #2
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Default Re: Change colour of all entities within a block

    Hi

    For starters take a look at the following threads...

    Changing block entities' color to bylayer

    batch modification of block properties

    Colors Bylayer

    Have a good one, Mike

  3. #3
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    1

    Default Re: Change colour of all entities within a block

    Here is a function that converts all the objects (excluding other blocks) in a block to be bylayer.

    Peter
    Quote Originally Posted by rajarshi
    Hi,

    We use blocks which have multiple colored entities within it. All entities are in zero layer and bylayer color, but some attributes are assigned magenta color. I need to make an autolisp program that would convert all these blocks into color 8.

    Can someone give me hints how it can be done?

    Thanks,
    Rajarshi
    Attached Files Attached Files

  4. #4
    100 Club tlewald's Avatar
    Join Date
    2003-01
    Location
    USA
    Posts
    144
    Login to Give a bone
    0

    Red face Re: Change colour of all entities within a block

    Peter,

    Thanks for posting this to the group - it is extremely helpful!

    Is there a way it can be modified to change linetype and lineweight to ByBlock also?

    Possible to allow the user to window the selections instead of having to pick individual blocks?

    Thanks again for sharing!

Similar Threads

  1. Change all Objects of one colour to another colour
    By tburke in forum AutoCAD General
    Replies: 15
    Last Post: 2016-03-04, 01:53 PM
  2. To be able to change Mtext colour via properties box
    By Wish List System in forum AutoCAD Wish List
    Replies: 3
    Last Post: 2012-10-05, 05:51 PM
  3. change layer colour
    By sight025025875459 in forum AutoLISP
    Replies: 3
    Last Post: 2011-05-20, 07:32 AM
  4. Can't change the colour of mpolygon
    By nikkojara291504 in forum AutoCAD Map 3D - General
    Replies: 11
    Last Post: 2011-03-03, 06:55 PM
  5. Replies: 7
    Last Post: 2006-10-23, 04:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •