Using (startapp..) function in Visual Lisp

Discussion in 'AutoCAD' started by Rakesh Rao, Aug 5, 2003.

  1. Rakesh Rao

    Rakesh Rao Guest

    I just tried the (startapp) function in plain Lisp and it works fine to
    open a pdf file using Acrobat Reader.

    The same function fails when used inside a compiled vlx file.

    The error: no function definition "startapp"

    Any clues why this is happening?

    Regards
    Rakesh

    --

    AutoCAD customization for Engineering/Mapping/GIS
    Get GeoTools @ http://www.4d-technologies.com/geotools
    Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
    FREE downloads : http://www.4d-technologies.com/techcenter
    </PRE>
     
    Rakesh Rao, Aug 5, 2003
    #1
  2. Rakesh Rao

    Doug Broad Guest

    How about using the sendcommand method?

    Why would you want to start an app in a separate
    namespace? Shouldn't it be started in the activedocument?
     
    Doug Broad, Aug 5, 2003
    #2
  3. Rakesh Rao

    R. Togores Guest

    Hi all:
    If using a separate namespace, include (vl-arx-import 'startapp) as the
    *very first line* in your code.
    Regards,
    Reinaldo
     
    R. Togores, Aug 5, 2003
    #3
  4. Rakesh Rao

    Doug Broad Guest

    OK,
    Got it. Reinaldo may have a solution. Whether
    you use the sendcommand method or do
    it internally in the separate namespace should
    make little difference.
     
    Doug Broad, Aug 5, 2003
    #4
  5. Rakesh Rao

    Rakesh Rao Guest

    Thanks Luis and everyone else who resoinded. The (vl-arx-import
    'startapp) worked. But I wonder why this was needed. The manual does not
    mention this function to be any different from other Lisp functions.

    Regards
    Rakesh


    --

    AutoCAD customization for Engineering/Mapping/GIS
    Get GeoTools @ http://www.4d-technologies.com/geotools
    Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
    FREE downloads : http://www.4d-technologies.com/techcenter
    </PRE>
     
    Rakesh Rao, Aug 6, 2003
    #5
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.