Any free minimal-GUI 2D CAD systems?

Hello,

I am looking for some sort of a 2D CAD tool that hopefully meets the following three criteria

  1. Is a free/open-source tool that runs on Linux, Windows or Mac (I really don’t care and have access to all three)

  2. Does not use point-and-click as it’s primary paradigm.

Ideally I want something that would be based on embedded JavaScript where I could provide a script like:



  var square = [ line(0,0,0,10), line(0,10,10,10), line(10,10,10,0), line(10,0,0,0) ];
  hatch_fill(square, HATCH_PATTERN_ANSI_xxx);


to make a hatched 10x10 square,

but I’m guessing this is a pipe dream and nothing that elegant exists. Is there anything remotely close?

  1. Is able to export in some industry standard CAD file formats as well as generate printable image files.

Any suggestions? I’ve looked at pythoncad, qkad, and sagcad and these are just entirely too GUI driven to be usable for me.

Thanks,

Groman