+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Forum Newbie
    Discipline
    Architectural
    Using
    AutoCAD 2017
    Join Date
    Nov 2016
    Posts
    2

    Default Multiple selection to change color

    Registered forum members do not see this ad.

    Hello, I am new to the forum.
    Can anyone of you help me?

    I am a beginner in lisp codes.

    My problem is that I need to do multiple selection to change color.
    I can only do it once

    Also that you can select the objects and then apply the command


    (DEFUN c:CBB () (COMMAND "CHANGE" PAUSE "" "P" "C" "BYBLOCK" ""))
    (DEFUN c:CBL () (COMMAND "CHANGE" PAUSE "" "P" "C" "BYLAYER" ""))
    (DEFUN c:C1 () (COMMAND "CHANGE" PAUSE "" "P" "C" "1" ""))
    (DEFUN c:C2 () (COMMAND "CHANGE" PAUSE "" "P" "C" "2" ""))
    (DEFUN c:C3 () (COMMAND "CHANGE" PAUSE "" "P" "C" "3" ""))
    (DEFUN c:C4 () (COMMAND "CHANGE" PAUSE "" "P" "C" "4" ""))
    (DEFUN c:C5 () (COMMAND "CHANGE" PAUSE "" "P" "C" "5" ""))
    (DEFUN c:C6 () (COMMAND "CHANGE" PAUSE "" "P" "C" "6" ""))
    (DEFUN c:C7 () (COMMAND "CHANGE" PAUSE "" "P" "C" "7" ""))

  2. #2
    Super Member
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2015
    Join Date
    Nov 2013
    Posts
    1,159

    Default

    Hi, you mean like this but not temprarily ?

  3. #3
    Forum Newbie
    Discipline
    Architectural
    Using
    AutoCAD 2017
    Join Date
    Nov 2016
    Posts
    2

    Default

    Hi, you mean like this but not temprarily ?

    It's just what i need
    But without the temprarily
    How to remove the temparily color?
    Someone help me

  4. #4
    Super Member
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2015
    Join Date
    Nov 2013
    Posts
    1,159

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Romero View Post
    It's just what i need
    But without the temprarily
    How to remove the temparily color?
    Someone help me
    The above code in the #22 post does just that, both are written by Lee Mac.

Similar Threads

  1. lisp that change all color 13 to cyan color?
    By ctrlaltdel in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 8th Jul 2016, 01:39 am
  2. Color Change in Multiple Layer States
    By brandon85 in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 12th Mar 2015, 09:18 pm
  3. Replies: 15
    Last Post: 16th Jul 2013, 05:20 pm
  4. couldn't change the line weight of resistors, or change their color
    By jackson6612 in forum AutoCAD Beginners' Area
    Replies: 24
    Last Post: 13th Jan 2011, 12:10 pm
  5. Lisp to change all objects with a certain color to another color
    By mikeSIEMENS in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 15th Jan 2010, 04:59 pm

Tags for this Thread

Bookmarks

Posting Permissions

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