dvb autorun issue

dvb autorun issue

Anonymous
Not applicable
327 Views
2 Replies
Message 1 of 3

dvb autorun issue

Anonymous
Not applicable
Hi,

I have an issue; I need to autorun a dvd as soon as a drawing is opened. I used acad.dvb (and acad.lsp) but it works only when I fire up the application(if autocad is running and I try to open another drawing acad.dvb is not working anymore). I tried to use "document-activate" and call the procedure from acad.dvd but in my procedure i have to send a command like "thisdrawing.sendcommand..." and autocad crashes and I get "Fatal error....".
I appreciate any sugestion.

Thanks
0 Likes
328 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
without seeing your code or knowing where you have made your declarations,
its difficult to ascertain where the problem may lie.


"gheor" wrote in message news:5696941@discussion.autodesk.com...
Hi,

I have an issue; I need to autorun a dvd as soon as a drawing is opened. I
used acad.dvb (and acad.lsp) but it works only when I fire up the
application(if autocad is running and I try to open another drawing acad.dvb
is not working anymore). I tried to use "document-activate" and call the
procedure from acad.dvd but in my procedure i have to send a command like
"thisdrawing.sendcommand..." and autocad crashes and I get "Fatal
error....".
I appreciate any sugestion.

Thanks
0 Likes
Message 3 of 3

Anonymous
Not applicable
In the help files there is a section titled Guidelines for Writing Event Handlers which states not to use interactive functions such as SendCommand.

Have you looked at AcadDoc.lsp instead of Acad.lsp?

Regards - Nathan
0 Likes