Results 1 to 12 of 12

Thread: setting

  1. #1
    rojren Guest

    setting

    I am all but illiterate with LISP.

    How do I get the layer color to reset to bylayer after the lisp command runs?

    I've tried adding (command "color" "bylayer" ) and (command "color" "256" ) as suggested elsewhere, but it doesn't work.

    Thanks.

  2. #2
    OLD-CADaver Guest
    (setvar "cecolor" "bylayer")

  3. #3
    Chip Harper Guest
    (command ".-color" "bylayer")

    or

    (setvar "cecolor" "bylayer")

    --

    Chip Harper
    Autodesk Discussion Group Facilitator

    http://home.comcast.net/~hot4cad/

  4. #4
    ecable Guest
    Try (setvar "cecolor" "bylayer")
    Should work.

  5. #5
    ecable Guest
    Also instead of
    (terpri)
    (setq dper (getstring "DPER NUMBER : " t))
    (terpri)

    Just use
    (setq dper (getstring "\nDPER NUMBER : " t))
    For a new command line

  6. #6
    rojren Guest
    Thanks.

    I seem to be doing something wrong though. I'm still getting the color as 100 after the lisp runs.

  7. #7
    OLD-CADaver Guest
    (command "color" "bylayer")
    or
    (setvar "cecolor" "bylayer")

    Notice quotes and CEcolor for the setvar.

  8. #8
    rojren Guest
    ..
    Well, I tried it, but like I said, I seem to be doing something wrong.

    I'll type in "dper1" and everything works, except the textcolor remains set at 100.

  9. #9
    Paul Turvill Guest
    Maybe you should post your code.
    ___

    "rojren" <nospam@address.withheld> wrote in message
    news:31696516.1105114776804.JavaMail.jive@jiveforu m2.autodesk.com...
    .
    Well, I tried it, but like I said, I seem to be doing something wrong.

    I'll type in "dper1" and everything works, except the textcolor remains
    set at 100.

  10. #10
    rojren Guest
    It's attached to my previous post.

  11. #11
    Paul Turvill Guest
    Sorry, missed that. However, your code works fine for me. Creates the text
    in color 100, then switches back to color ByLayer.
    ___

    "rojren" <nospam@address.withheld> wrote in message
    news:11855833.1105116432443.JavaMail.jive@jiveforu m2.autodesk.com...
    > It's attached to my previous post.

  12. #12
    rojren Guest
    ..
    Well, I think I found my problem. The AutoCAD installation I was using this LISP on is getting flaky. I tried it on two others, and it works.

    Go figure.

    Thanks, all.

Similar Threads

  1. setting OSNAP with VBA
    By peterpeter in forum VBA
    Replies: 3
    Last Post: 02-12-2007, 07:17 AM
  2. Setting RAL colors
    By Patrick EMIN in forum VBA
    Replies: 4
    Last Post: 04-08-2005, 07:31 PM
  3. Lisp routine for setting default hatch setting to "associati
    By JamieLandmark in forum Customization
    Replies: 23
    Last Post: 03-31-2005, 07:55 PM
  4. pen setting problem
    By Cindee Bae in forum Printing
    Replies: 2
    Last Post: 01-19-2005, 03:20 PM
  5. Timeout setting
    By Marshall Caudle in forum Printing
    Replies: 3
    Last Post: 12-01-2004, 05:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum