Results 1 to 2 of 2

Thread: Lisp Routine

  1. #1
    Member
    Join Date
    2007-09
    Posts
    6
    Login to Give a bone
    0

    Smile Lisp Routine

    Hi! Friends,
    Can anyone help me to create a lisp routine like to call a layer and activate it as current by just typing some short keys. eg. i want to just type wal(for layer name wall) and the layer is activated with the standard linetype,lw,col etc.....
    please revert back.
    Thanx & Regards,

    Mahesh D.
    Last edited by mahesh.darekar; 2008-07-16 at 07:18 AM. Reason: I have found it friends.....

  2. #2
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: Lisp Routine

    Quote Originally Posted by mahesh.darekar View Post
    Hi! Friends,
    Can anyone help me to create a lisp routine like to call a layer and activate it as current by just typing some short keys. eg. i want to just type wal(for layer name wall) and the layer is activated with the standard linetype,lw,col etc.....
    please revert back.
    Thanx & Regards,

    Mahesh D.
    the program is easy, but the formatting is difficult, do you have a list of these shortcuts you wish to use?
    Code:
    (command "layer" "set" keyin "")
    is the command you would use, however, to get it to work with simple shortcuts is far more complicated. I dont know the best way to do it, but you would have to create a defun for each shorcut you wish to use and replace keyin with the name of the layer you wish to set current when the command is called.
    you could format it something like this:
    Code:
    (defun c:shortcut ()
    (layercurrent command "full layer name")
    )
    (defun layercurrent (layername /)
    (command "layer" "set" layername "")
    )
    and just repeat the shortcut program over and over for each layer you wish to shorten

Similar Threads

  1. Calling up LISP routine from within another LISP
    By jimmy_goodall in forum AutoLISP
    Replies: 4
    Last Post: 2013-08-21, 05:56 AM
  2. NEED HELP WITH LISP ROUTINE - PURGE linetype lisp
    By ECASAOL350033 in forum AutoLISP
    Replies: 6
    Last Post: 2013-06-21, 01:13 AM
  3. Help with a lisp routine to add a 12" line to this routine
    By Orbytal.edge341183 in forum AutoLISP
    Replies: 3
    Last Post: 2012-11-14, 10:33 PM
  4. Combine three lisp routine into one routine.
    By BrianTFC in forum AutoLISP
    Replies: 1
    Last Post: 2012-02-08, 12:14 PM
  5. Replies: 9
    Last Post: 2012-01-21, 07:58 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
  •