sirsebast Posted September 29, 2011 Posted September 29, 2011 Hi, I need help to run macro whith button, the macro name is CARCH.DVB the macro was in the folder c:autocad2007\macro\carch.dvb. The macro a userfrom and in module1 I have a sub whit say show userform1. The macro was load in autocad and I try to use command -vbarun but i does'nt work autocad say macro not found. Thanks Quote
mdbdesign Posted September 29, 2011 Posted September 29, 2011 Did you load macro into Autocad? Open VBA and check if macro is present. Try to run macro from inside VBA. Quote
sirsebast Posted September 29, 2011 Author Posted September 29, 2011 Yes it'S load. But when i try to run I can i don't see it. to run my userfom I have to go in vb editor and push the run buttton. I just work in one drawing. Quote
mdbdesign Posted September 29, 2011 Posted September 29, 2011 Looks like you need to add it to startup suite, and make sure it is in search path of Autocad. And if you use it frequently make button to run it. Quote
BIGAL Posted September 30, 2011 Posted September 30, 2011 Maybe this will help (defun C:toolkit () (vl-vbaload "S:/AutoDESK/VBA/Design Toolkit.dvb") (vl-vbarun "ToolKit") ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.