CAD program/s with plain-text scripting language

Click For Summary

Discussion Overview

The discussion revolves around identifying CAD programs that include a plain-text scripting language suitable for performing boolean operations on simple geometric shapes and generating STL files for 3D printing. The focus is on finding free alternatives similar to Ansys' APDL.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Homework-related

Main Points Raised

  • One participant inquires about CAD programs with plain-text scripting languages, specifically looking for free options that can handle boolean operations and export STL files.
  • Another participant suggests that while they are unaware of a suitable program, many CAD editors support SVG, which can be manipulated using JavaScript, citing Inkscape as an example.
  • A different participant counters that SVG is primarily for 2D graphics and mentions that FreeCAD's Python-based scripting language meets their requirements for basic shape generation, boolean operations, and STL export.
  • Another reply introduces a link to a blog post about generating 3D models as SVG, suggesting a potential alternative.
  • A participant expresses skepticism about the 3D capabilities of SVG and questions whether 3DTin has a scripting language for STL export, emphasizing their need for local automation using a Perl script.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a specific CAD program that meets all requirements. Multiple competing views and suggestions remain, with some participants expressing uncertainty about the capabilities of SVG and 3DTin.

Contextual Notes

Limitations include the lack of clarity on the scripting capabilities of suggested programs and the specific requirements for local automation versus online tools.

Who May Find This Useful

Individuals interested in CAD software with scripting capabilities, particularly for 3D modeling and STL file generation, may find this discussion relevant.

Vigardo
Messages
87
Reaction score
7
Hi experts,

What CAD program/s include a plain-text scripting language? Any free?

I´m looking for something similar to Ansys´ APDL, but intended to perform boolean operations with simple geometrical shapes (spheres, boxes, cylinders, etc.) and able to generate meshed objects in STL or other 3D printing amenable format.

Thanks a lot!
 
Engineering news on Phys.org
While I don't know of a program that fits your requirements, many CAD editors do support SVG which can be manipulated in a web page with javascript.

One example is Inkscape.

SVG is described here:

http://en.m.wikipedia.org/wiki/SVG
 
Thanks Jedishrfu for your contribution, but SVG seems only designed for 2D graphics.

After searching deeper, I´ve found that the Python-based scripting lengauge provided by FreeCAD would fulfill my requirements, i.e. easy basic shapes generation, boolean operations, and STL export capabilities. Here is the link to the "part scripting" page: http://www.freecadweb.org/wiki/index.php?title=Topological_data_scripting

Any other alternative?
 
How about this?

http://blog.3dtin.com/2011/02/22/export-3d-models-as-svg/

generates 3D SVG
 
Last edited by a moderator:
It seems that SVG format is also capable of 3D. It is interesting, but I can't see if 3DTin has some scripting language to create and export models into STL. By the way, I don't want online tools because I need to automate the STL files generation using some local in-house Perl script. Thanks!
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
17K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 23 ·
Replies
23
Views
37K
Replies
29
Views
6K
Replies
3
Views
5K