VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dvb autorun issue

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
219 Views, 2 Replies

dvb autorun issue

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
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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
Message 3 of 3
Anonymous
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost