+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Junior Member
    Using
    AutoCAD 2000
    Join Date
    Dec 2011
    Posts
    10

    Default How do I make one selection automatic with getkword?

    Registered forum members do not see this ad.

    I want to make the insert option happen by just pressing enter in the following code:


    Code:
    (defun c:mak521 () 
    (if (/= (tblsearch "block" "521") 
    nil)
        (progn
          
    (beep)
          (initget 1 "Yes No 
    INsert")
          (prompt "\n521 has already been 
    created.")
          (setq x (getkword 
    "\nInsert 521 at 0,0 or redefine it? [Yes/No] <INsert>: 
    "))
          
    (cond
            ((= x "Yes") 
    (mak521))
            ((= x "No") 
    (exit))
            ((= x "INsert") (ins521))
    How can I do this?

  2. #2
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    19,368
    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

  3. #3
    Junior Member
    Using
    AutoCAD 2000
    Join Date
    Dec 2011
    Posts
    10

    Default

    Registered forum members do not see this ad.

    Thanks. I think I can figure it out from your tutorial.

Similar Threads

  1. Page Orientation - Automatic Selection
    By nicolas in forum AutoCAD Drawing Management & Output
    Replies: 7
    Last Post: 20th Jun 2011, 05:00 pm
  2. Automatic update selection
    By dhl in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 19th Oct 2009, 10:53 pm
  3. How do I make a selection set of size 1 from the last entity
    By MarkytheSparky in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 30th Apr 2008, 08:54 pm
  4. Make a non square selection
    By viriato79 in forum AutoCAD General
    Replies: 8
    Last Post: 7th Jan 2008, 08:37 pm
  5. Make Sheet Sequence Numbers Automatic
    By CharlieBrown in forum AutoCAD Drawing Management & Output
    Replies: 0
    Last Post: 23rd Dec 2004, 02:45 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