Jump to content

Recommended Posts

Posted

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.

Posted
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/

Posted

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.

Posted
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

Posted

Thank you! It seems to be what I m looking for.

Posted

I tried the way on Afralisp website. Does it really work for only 5 variables?! I tried more and it gives error.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...