Gadget user interaction

This section is for general discussion about Gadgets
Post Reply
User avatar
jimandi5000
Vectric Wizard
Posts: 1050
Joined: Wed Mar 11, 2015 6:50 pm
Model of CNC Machine: Home Made 60 x 120
Location: North Houston Tx.
Contact:

Gadget user interaction

Post by jimandi5000 »

Hello all,

I need some help. I have built tools for AutoCAD and there are code functions to get input from the user. (i.e. Getpoint, Getobject, Getangle etc...) I am looking for the same in Lua. Anyone have these or know how to make them?

AutoLISP Examples
(setq p (getpoint))
(setq p (getpoint "Where? "))
(setq p (getpoint '(1.5 2.0) "Second point: "))
Thanks,
Jim

User avatar
Adrian
Vectric Archimage
Posts: 14546
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: Gadget user interaction

Post by Adrian »

Far as I know the only way with LUA as it's used with Vectric to get user input is to use HTML and the associated get/put functions. The standard io read functions don't work as the there isn't a command line to capture info form and other methods require other libraries which is more hassle than just popping up a simple form.

User avatar
jimandi5000
Vectric Wizard
Posts: 1050
Joined: Wed Mar 11, 2015 6:50 pm
Model of CNC Machine: Home Made 60 x 120
Location: North Houston Tx.
Contact:

Re: Gadget user interaction

Post by jimandi5000 »

Adrian wrote:Far as I know the only way with LUA as it's used with Vectric to get user input is to use HTML and the associated get/put functions. The standard io read functions don't work as the there isn't a command line to capture info form and other methods require other libraries which is more hassle than just popping up a simple form.
Thanks Adrian,
Thanks,
Jim

Post Reply