CAD program/s with plain-text scripting language

AI Thread Summary
Several CAD programs offer plain-text scripting languages suitable for generating geometrical shapes and performing boolean operations. FreeCAD, with its Python-based scripting, meets the requirements for basic shape generation, boolean operations, and STL export capabilities. While SVG is primarily for 2D graphics, there are discussions around its 3D capabilities, though it lacks robust scripting for STL generation. The user emphasizes the need for local, automated solutions rather than online tools. FreeCAD appears to be the most viable option for the user's needs.
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!
 
Thread 'Physics of Stretch: What pressure does a band apply on a cylinder?'
Scenario 1 (figure 1) A continuous loop of elastic material is stretched around two metal bars. The top bar is attached to a load cell that reads force. The lower bar can be moved downwards to stretch the elastic material. The lower bar is moved downwards until the two bars are 1190mm apart, stretching the elastic material. The bars are 5mm thick, so the total internal loop length is 1200mm (1190mm + 5mm + 5mm). At this level of stretch, the load cell reads 45N tensile force. Key numbers...
I'm trying to decide what size and type of galvanized steel I need for 2 cantilever extensions. The cantilever is 5 ft. The space between the two cantilever arms is a 17 ft Gap the center 7 ft of the 17 ft Gap we'll need to Bear approximately 17,000 lb spread evenly from the front of the cantilever to the back of the cantilever over 5 ft. I will put support beams across these cantilever arms to support the load evenly
Back
Top