Draw Text in Gadget

This section is for general discussion about Gadgets
Post Reply
CNCDaveToo
Posts: 26
Joined: Mon Jan 22, 2018 3:47 am
Model of CNC Machine: ShopBot Desktop
Location: Leesburg, Virginia, USA

Draw Text in Gadget

Post by CNCDaveToo »

I've built a gadget to help reduce steps and to gain precision and time. I've gotten the lines drawn, now I would like to add some text to the layer I've drawn into (ala Draw Text tool). I don't see anything in the API documentation about this. Is it possible to do from a Lua script?

PaulRowntree
Vectric Wizard
Posts: 1687
Joined: Sun Oct 24, 2010 7:28 pm
Model of CNC Machine: homebuilt 4'x2' (Mach3+G540)
Location: Guelph, Ontario
Contact:

Re: Draw Text in Gadget

Post by PaulRowntree »

Most of the Gadget API is for vector and toolpath creation; they do not in general duplicate the built in tools such as manipulating text.
Pity.

Cheers!
Paul Rowntree
WarpDriver, StandingWave, Topo and gadgets available at PaulRowntree.weebly.com

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

Re: Draw Text in Gadget

Post by jimandi5000 »

Hi There,

I write full lines of test with my gadget.

Send me a emal message at james.l.anderson@outlook.com

Jim
Thanks,
Jim

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

Re: Draw Text in Gadget

Post by jimandi5000 »

Here is what it looks like.
Attachments
TextTool.JPG
Thanks,
Jim

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

Re: Draw Text in Gadget

Post by jimandi5000 »

Here is the current copy of the code.
Attachments
TextWriter.zip
(2.39 KiB) Downloaded 199 times
Thanks,
Jim

CNCDaveToo
Posts: 26
Joined: Mon Jan 22, 2018 3:47 am
Model of CNC Machine: ShopBot Desktop
Location: Leesburg, Virginia, USA

Re: Draw Text in Gadget

Post by CNCDaveToo »

Many (belated) thanks Jim!
Be kind.

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

Re: Draw Text in Gadget

Post by jimandi5000 »

CNCDaveToo wrote:
Fri Mar 13, 2020 11:22 pm
Many (belated) thanks Jim!
No problem... Anytime :)
Thanks,
Jim

Post Reply