LISP to VB?

Discussion in 'AutoCAD' started by Mary Bloswick, Mar 17, 2005.

  1. Is there any good method of converting LISP routines to VB? (Which version
    of VB?)

    There are a number of good old LISP's around here, but I'd like to upgrade
    things to a VB based library. I also would like to modify some of these
    routines for use in other VB accessible CAD programs.

    thank you.
    MaryB
     
    Mary Bloswick, Mar 17, 2005
    #1
  2. Hi Mary,

    If the routine does what you want - what's the point of converting it?

    If you want to improve the functionality, then a complete recoding to
    incorporate the idea might be in order.

    Having said that, you can clipboard the code into VBA and do some search and
    replace type actions to transform the code.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Mar 17, 2005
    #2
  3. Because the two languages are so fundamentally different,
    converting between them is not trivial, and you will probably
    not find any automated means of doing it.

    Another basic problem with converting LISP to VB, even
    manually, is that many LISP programs rely on issuing
    AutoCAD commands to perform various tasks. While there
    is a way to execute AutoCAD commands from VB, there
    are some major limitations and complications involved.

    Hence, to convert a LISP macro that uses calls to
    (command), will probably require a significant or complete
    rewrite, using the ActiveX object model.

    My advice is that if your LISP programs work now, leave
    them alone.
     
    Tony Tanzillo, Mar 17, 2005
    #3
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.