Crontrol opening of a file

Crontrol opening of a file

Anonymous
Not applicable
367 Views
1 Reply
Message 1 of 2

Crontrol opening of a file

Anonymous
Not applicable

Hi

 

I'd like to control the opening of my file.

So I try to create a macro which runs automaticaly when I open a specify file.

 

My problem is that I cannot do (like in Excel)

Private Sub Drawing_Open()

 

What can I do?

 

Thanks for your help!

0 Likes
368 Views
1 Reply
Reply (1)
Message 2 of 2

kasperwuyts
Collaborator
Collaborator

Everytime Autocad opens a new drawing; it looks in your support file search paths for any lisp-files called 'acaddoc.lsp' and executes them. So if you can find a way to get a lisp routine that executes a vba routine, that would be the way to go. I have no experience with lisp, so i don't know how to do this.

 

More information here:

http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Compari...


Best regards
Kasper Wuyts
_______________________________________________________________________________
If this post solves your problem, clicking the 'accept as solution' button would be greatly appreciated.
0 Likes