MJLM Posted June 28, 2016 Share Posted June 28, 2016 Although initially ported under the VBA forum, I m posting this here as well as it may have better luck. Hello all, I ve been programming in lisp for quite some time having troubles to design descent graphical interfaces with DCL. To put it simply, DCL for me sucks. I though I could give a try using VBA instead which seems to be hell lot easier but I m having difficulties in understanding how could I pass variables from a form to Autolisp routine and vice versa. I ve been googling about it but got lost. Could somebody provide a small example for both directions or at least a good resource for beginners in VBA for Autocad? Thank you. Quote Link to comment Share on other sites More sharing options...
pkenewell Posted June 28, 2016 Share Posted June 28, 2016 Although initially ported under the VBA forum, I m posting this here as well as it may have better luck. Hello all, I ve been programming in lisp for quite some time having troubles to design descent graphical interfaces with DCL. To put it simply, DCL for me sucks. I though I could give a try using VBA instead which seems to be hell lot easier but I m having difficulties in understanding how could I pass variables from a form to Autolisp routine and vice versa. I ve been googling about it but got lost. Could somebody provide a small example for both directions or at least a good resource for beginners in VBA for Autocad? Thank you. Before you go the VBA route (which is fine also), have you looked at using OpenDCL? http://opendcl.com/wordpress/ Quote Link to comment Share on other sites More sharing options...
MJLM Posted June 29, 2016 Author Share Posted June 29, 2016 Thank you but although familiar with openDCL, we cannot install it where the apps are supposed to run unfortunately, including the runtime. That s why I though I could give a try to VBA. Quote Link to comment Share on other sites More sharing options...
pkenewell Posted June 29, 2016 Share Posted June 29, 2016 Thank you but although familiar with openDCL, we cannot install it where the apps are supposed to run unfortunately, including the runtime. That s why I though I could give a try to VBA. It is possible to pass values from VBA to Lisp. read this tutorial: http://www.afralisp.net/archive/vl/vl-vba1.htm Quote Link to comment Share on other sites More sharing options...
MJLM Posted June 30, 2016 Author Share Posted June 30, 2016 Thank you! It seems to be what I m looking for. Quote Link to comment Share on other sites More sharing options...
MJLM Posted July 2, 2016 Author Share Posted July 2, 2016 I tried the way on Afralisp website. Does it really work for only 5 variables?! I tried more and it gives error. Quote Link to comment Share on other sites More sharing options...
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.