muck Posted June 15, 2010 Posted June 15, 2010 Is it possable to make a VBA Program start running using a menu pick or a hot key. What is the easyest way to make a VBA program pop up in AutoCAD 2010 Thank you, Quote
BIGAL Posted June 16, 2010 Posted June 16, 2010 Here is a code example just put it in your autoload file (defun C:vbadrn () (vl-vbaload "S:/AutoDESK/VBA/vbadrains.dvb") (vl-vbarun "pitscheduleupdate") ) you can either type vbadrn or assign it to a menu ^c^cvbadrn or again in the menu ^c^c(vl-vbaload S:/AutoDESK/VBA/vbadrains.dvb") (vl-vbarun "pitscheduleupdate") Quote
muck Posted June 16, 2010 Author Posted June 16, 2010 What autoload file should this routine go into. Acad.lsp ? Should a make a new autoload File? Thank you, Quote
muck Posted June 22, 2010 Author Posted June 22, 2010 what is (vl-vbarun "pitscheduleupdate") all about? Where did pitscheduleupdate come form? Quote
BIGAL Posted June 23, 2010 Posted June 23, 2010 I guess by your question that your running a VBA that some else has written, to answer though the question there is two steps. 1 Load a VBA program it can contain many different routines within it. "VBDRAINS.dvb" 2 Run a particular sub routine within the VBA program "pitschedule" If your VBA is already loaded as part of your statrtup proceedure then you only need step2 to run. 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.