Nicescad
From BITPlan Wiki
⚠️ LLM-generated content notice: Parts of this page may have been created or edited with the assistance of a large language model (LLM). The prompts that have been used might be on the page itself, the discussion page or in straight forward cases the prompt was just "Write a mediawiki page on X" with X being the page name. While the content has been reviewed it might still not be accurate or error-free.
OsProject[edit | edit source]
| OsProject | |
|---|---|
| id | nicescad |
| state | active |
| owner | WolfgangFahl |
| title | nicescad |
| url | https://github.com/WolfgangFahl/nicescad |
| version | 0.3.0 |
| description | |
| date | 2025-06-16 |
| since | 2023-07-19 |
| until | |
Installation[edit source]
pip install nicescad
# alternatively if your pip is not a python3 pip
pip3 install nicescad
# local install from source directory of nicescad
pip install .
upgrade[edit source]
pip install nicescad -U
# alternatively if your pip is not a python3 pip
pip3 install nicescad -U
Prerequisites[edit | edit source]
✍️🤖 Agent/Guido:
- OpenSCAD command line, detected automatically or set via the environment variables OPENSCAD_EXEC and OPENSCAD_TMP_DIR
- OpenSCAD 2021.01 renders with the CGAL backend only; the faster Manifold backend waits for the next OpenSCAD release, see nicescad #30
- Pygments for syntax highlighting
Features[edit | edit source]
✍️🤖 Agent/Guido:
- OpenSCAD editor with 3D view of the rendered STL
- share links /design/<id> e.g. webcam arm, curve
- import of BlocksCAD files, see nicescad_examples/blockscad
- render on load with -rol/--render_on_load
Save rule[edit | edit source]
✍️🤖 Agent/Guido: On nicescad.bitplan.com a design is only saved as share link if the code contains both
- the keyword module
- the line // Copyright Wolfgang Fahl
Code missing one of them is silently not saved. Example:
// Copyright Wolfgang Fahl 2026
module example() {
cube(30, center=true);
}
example();
Usage[edit | edit source]
command line[edit | edit source]
nicescad -h
usage: nicescad [-h] [-a] [-d] [--debugLocalPath DEBUGLOCALPATH]
[--debugPort DEBUGPORT] [--debugRemotePath DEBUGREMOTEPATH]
[--debugServer DEBUGSERVER] [-f] [-q] [-v] [-V]
[--apache APACHE] [-c] [-l] [-i INPUT] [-rol] [--host HOST]
[--port PORT] [-s] [-rp ROOT_PATH]
nicescad brings OpenScad to the browser (again)
options:
-h, --help show this help message and exit
-a, --about show version info and open documentation
-d, --debug enable debug output
--debugLocalPath DEBUGLOCALPATH
remote debug Server path mapping - localPath - path on
machine where python runs
--debugPort DEBUGPORT
remote debug Port [default: 5678]
--debugRemotePath DEBUGREMOTEPATH
remote debug Server path mapping - remotePath - path
on debug server
--debugServer DEBUGSERVER
remote debug Server
-f, --force force overwrite or unsafe actions
-q, --quiet suppress all output
-v, --verbose increase output verbosity
-V, --version show program's version number and exit
--apache APACHE create an apache configuration file for the given
domain
-c, --client start client
-l, --local run with local file system access
-i INPUT, --input INPUT
input file
-rol, --render_on_load
render on load
--host HOST the host to serve / listen from (default: localhost)
--port PORT the port to serve from (default: 9858)
-s, --serve start webserver
-rp ROOT_PATH, --root_path ROOT_PATH
path to scad files [default:
.../site-packages/nicescad_examples]
Links[edit | edit source]
Demo[edit | edit source]
Libraries used[edit | edit source]
Alternative online editors[edit | edit source]
- https://ochafik.com/openscad2/
- http://www.implicitcad.org/editor
- https://www.blockscad3d.com/editor/
- https://openjscad.xyz/
- https://cad-n-done.de ✍️🤖 Agent/Ariadne: open source, see Cad-n-done and GitHub