i have few .arx applications autocad. in these applications few menu based , others command line. trying is,
- load .arx app,
- run ,
- unload once .arx application runs through lisp command. .arx applications run once user clicks on tabs provided. .arx applications written in vc++.
now have lisp file, gets loaded once user starts autocad. in lisp files have declared these functions various .arx applications;
(defun c:xyz_program() (command) (command) (arxload "c:/abc/xyz.arx") (command "xyz_program") (arxunload "xyz.arx") )
it works fine programs need input data menu based forms, says error unloading xyz.arx programs need command line input.
i wondering if there commands in lisp make sure arxunload "xyz.arx" execute once (command "xyz_program") executed.
i not sure on how approach problem. same appreciated.
code using ;
( defun c:xyz_program() (command) (command) (arxload "c:/example/folder/xyz.arx") (command "xyz_program") ads_queueexpr( (arxunload "xyz.arx") ) )
it's not clear question, sounds module cannot unloaded because actively executing command waiting user input. so, think asking how postpone unloading until command finished executing. answer question use ads_queueexpr() queue (arxunload "xxx") function within command itself.
however, creating bigger problems attempting unload module. unloading takes time, not performance. correct solution problem not unload modules , leave unloading autocad.
Comments
Post a Comment