command line parameter for ADS function.

Discussion in 'AutoCAD' started by Bhushan Kalse, Apr 13, 2005.

  1. Hi EB,

    Can anybody please tell me that, is there any way to pass the command
    line parameter to an ADS function. What I mean by this is, suppose I
    have an ADS function called "MyCircle()" to draw a circle. I can
    directly call this function from AutoCAD command prompt saying
    'MyCircle' and there after it will ask for the required data from the
    user to draw a circle.

    But now, What I want to do is, to have such a function in which I will
    provide the parameters at command line only. for ex. now, instead of
    calling 'mycircle' and the giving center and radius etc., I want to
    call 'mycircle(center, radius)' on the AutoCAD command prompt.

    I have to do this because, I want to call this ADS functiona from a
    LISP or other ADS program.

    Thanks in advance for help.

    ~Bhushan.
     
    Bhushan Kalse, Apr 13, 2005
    #1
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.