ssget but use my own promt?

Discussion in 'AutoCAD' started by C Witt, Nov 5, 2004.

  1. C Witt

    C Witt Guest

    how can I use the (ssget) command but use my own promt in place of the
    standard "Select Objects:"??
     
    C Witt, Nov 5, 2004
    #1
  2. C Witt

    Dommy2Hotty Guest

    You can't use you're own prompt IN PLACE of the standard "Select Objects:", but you can put your own BEFORE it shows the default (you'll still see the default after yours...)

    Code:
    (defun c:ssgetprompt (/ ss1)
    (prompt "\nThis is your own prompt...")
    (setq ss1 (ssget))
    (princ)
    )
    
    Once ran, will look like this:
    Code:
    Command: ssgetprompt
    
    This is your own prompt...
    Select objects:
     
    Dommy2Hotty, Nov 5, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.