Visual Lisp - Code Formatting

Discussion in 'AutoCAD' started by rameshg, Aug 26, 2003.

  1. rameshg

    rameshg Guest

    1. Does anyone know whether code formatting is possible in VLISP (like in VB), so that the variable names appear as defined in Dim statement. For ex., (defun C:TEST(/ RotAng InsPt)....) then all subsequent typing of the defined symbol names should appear as defined in the local vars list, even though we may type as rotang, inspt etc., Any thoughts???

    2. How to run an EXE file from a LISP routing? Is there any better way than (command ".Shell" "ExeName") ??

    Regards
    Ramesh.
     
    rameshg, Aug 26, 2003
    #1
  2. rameshg

    R.K. McSwain Guest


    No, but here is something I dicovered a while back.
    Given this function:
    (defun testapp ()
    (setq abc 1.23
    def 4.56
    xyz "string"
    tmp T
    out nil)
    )
    Go into Tools | Environment Options | General Options | Diagnostics and
    turn ON "Report statistics during syntax checking" and when you run
    "Check text in editor" it will scoop up all your global variables in the
    Build Output window like this:

    Global variables: (ABC DEF OUT TMP XYZ)
     
    R.K. McSwain, Aug 26, 2003
    #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.