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!
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
https://ci.appveyor.com/projec...pace/builds/32424335/artifacts
(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.
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.
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.
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.
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
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
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.
(no subject) (by vincentas)
if you cant to create 3d objects using code you could take a look at OpenSCAD project (http://openscad.org/)
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?
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?
(no subject) (by ruevs)
Or CadQuery
Post a reply to this comment: