SolveSpace Logo SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

scripting (by Mario)
I wish to express my admiration for this great little software, a real gem: intuitive, powerful and essential (6MB no dependencies nor installation, wow!). The main feature I really feel to miss, after completing the tutorials, is some scripting ability, a way to create with a human readable script (language, CSON or whatever) the same document I can create with the mouse. Apart from that, keep up the good work!
Thu Jun 18 2020, 10:21:31
scripting (by Geert Hospers)
Here is a Windows version 3.0 cli.exe with a command line interface
https://ci.appveyor.com/projec...pace/builds/32424335/artifacts
Tue Jun 23 2020, 08:04:41
(no subject) (by Mario)
Thanks for the link, I downloaded `solvespace-cli.exe` but nothing seems to happen. More probably a windows pops up but is closed immediatly due to some kind of error.
Mon Jun 29 2020, 05:20:45
scripting (by Geert Hospers)
@Mario
I just tried, and it works.
You have to run cmd in Windows, and then run
...\Downloads\solvespace-cli.exe

The cmd window will show what and how you can do with it.
Tue Jul 7 2020, 17:04:50
scripting (by Mario)
You are right, it works, but from what I understand such command line interface has only post-production (mainly exports) commands operating on existing drawing files. So it is not possible to create a parametric CAD drawing through scripting.
Mon Jul 13 2020, 21:52:03
scripting (by Albert)
There is a python package for the solvespace solver utilities, it might be something similar to what you are looking for (but not exactly): https://pypi.org/project/python-solvespace .

Do note, that I have not used this. I've only skim read through the API.

I noticed it on the GitHub pull request page: https://github.com/solvespace/solvespace/pull/493
Tue Jul 14 2020, 06:07:43
scripting (by Mario)
Thanks, that's interesting but it seems still at early stage and I'm not a pro, to start I need at least a conda command to install everything from stratch and a "Hello world" example.
Thu Jul 16 2020, 09:23:28
(no subject) (by vincentas)
if you cant to create 3d objects using code you could take a look at OpenSCAD project (http://openscad.org/)
Thu Apr 18 2024, 01:06:58
scripting alternative in Python (by William F Adams)
One nascent development is:

https://pythonscad.org/

it's an effort to add Python as an additional language option in Python. Hopefully it will get merged in presently.

That said, it would be interesting to see some sort of scripting or programming w/in Solvespace (says the guy who is working at creating something on top of Python/OpenSCAD).

Are there concepts/shapes which aren't easily done in OpenSCAD which might be better addressed as code? Perhaps B├ęzier curves?
Mon Apr 22 2024, 10:56:28
(no subject) (by ruevs)
Or CadQuery
Mon Apr 22 2024, 12:41:52
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2022 SolveSpace contributors. Most recent update June 2 2022.