TheSwamp

Code Red => VB(A) => Topic started by: rhino on December 27, 2013, 07:17:04 AM

Title: Help with User Interface Form
Post by: rhino on December 27, 2013, 07:17:04 AM
Hi,

I'm not a coder but have written a fairly simple LISP program to draw a building plan layout (simple box with steel frames).
I couldn't wrap my head around dcl for an interface and came across this post:
http://www.afralisp.net/archive/vl/vl-vba2.htm
 (http://www.afralisp.net/archive/vl/vl-vba2.htm)

so I created the attached userform but I can't get it to work and don't have examples for radio buttons or combo boxes...  :ugly:

All I need is a way to get the variables transferred to LISP.

Thanks,
Chris
Title: Re: Help with User Interface Form (Solved)
Post by: rhino on December 30, 2013, 03:35:22 PM
I was able to figure out the coding required using the following links:

http://forums.autodesk.com/t5/Visual-Basic-Customization/Passing-VBA-Variables-to-LISP-Variables/td-p/311327/page/2
http://www.theswamp.org/index.php?topic=40723.msg459999#msg459999
&
http://www.theswamp.org/index.php?topic=10906.0

Thanks to jbuzbee & Tony Tanzillo :kewl:
Its quite a shame Autodesk/microsoft is phasing out VBA, this was quite a simple approach to getting a user interface for AutoLISP.
VB.net and C# require you to learn coding or the language and there is no built in IDE  :|
Title: Re: Help with User Interface Form
Post by: Kerry on December 30, 2013, 04:58:27 PM
Since you are working in Lisp anyway ... have you looked at OpenDCL?

http://opendcl.com/wordpress/
Title: Re: Help with User Interface Form
Post by: rhino on December 30, 2013, 05:57:05 PM
Since you are working in Lisp anyway ... have you looked at OpenDCL?

http://opendcl.com/wordpress/

Hi Kerry,
I had looked into opendcl its a great way to code the interface but needs a runtime installation - our company is privy to allowing users to install applications hence the vba option suited better.

LISP is really easy to grasp on to; I've looked at C# I feel I understand the variables and processing in LISP much easier as there is very little time on hand to learn C# and WORK hehe.

Chris