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>
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?
Hi all: If using a separate namespace, include (vl-arx-import 'startapp) as the *very first line* in your code. Regards, Reinaldo
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.
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>