Gadget user interaction

This section is for general discussion about Gadgets

Gadget user interaction

Postby jimandi5000 » Mon Oct 28, 2019 8:30 pm

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
jimandi5000
Vectric Apprentice
 
Posts: 67
Joined: Wed Mar 11, 2015 6:50 pm
Location: North Houston Tx.
Model of CNC Machine: Home Made 60 x 120

Re: Gadget user interaction

Postby Adrian » Tue Oct 29, 2019 9:16 am

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
Adrian
Vectric Archimage
 
Posts: 9678
Joined: Thu Nov 23, 2006 2:19 pm
Location: Surrey, UK
Model of CNC Machine: ShopBot PRS Alpha 96x48

Re: Gadget user interaction

Postby jimandi5000 » Tue Oct 29, 2019 12:18 pm

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
User avatar
jimandi5000
Vectric Apprentice
 
Posts: 67
Joined: Wed Mar 11, 2015 6:50 pm
Location: North Houston Tx.
Model of CNC Machine: Home Made 60 x 120


Return to Gadgets - General

Who is online

Users browsing this forum: No registered users and 1 guest