OpenSCAD公开文档;未核安装、未执行,限所列输入输出。
调用方式 / profile:openscad-parametric-stl-documentation · 组件版本:documentation-sha256:f24734b9de90c5cad3cca10292eb3f48ec7571edeff665ed525db2616a43b057 · 引用此版本与调用方式
已记录条件
- invocation_mode = cli:支持。Supported within this profile and component version. 依据:openscad-parametric-stl-documentation-e1, openscad-parametric-stl-documentation-e2
入口与前提
- 协议
- 本地CLI(历史文档声明,未执行)
- 认证
- 所列本地命令不含服务登录;安装获取、脚本依赖和文件执行权限另核。
- 价格是否查明
- unknown
- 配额是否查明
- unknown
openscad
- 仅官方文档声明,配方proposed;本站未连接、注册、调用第三方工具或核验实际账户。
- L16描述2019.05历史usage,不代表当前安装或运行版本。
- -D覆盖与脚本初始化有关,不能保证任意变量覆盖生效;字符串引号按实际shell处理。
- Windows openscad.com说明不是本机执行验证。
- 几何可解析不等于可制造或打印就绪;当前版本、平台、费用和完整网络行为unknown。
配方 openscad-parametric-stl-documentation-recipe · 修订 1
所需调用能力:
- export_parametric_stl
运行前提:
- 仅官方文档声明,配方proposed;本站未连接、注册、调用第三方工具或核验实际账户。
- L16描述2019.05历史usage,不代表当前安装或运行版本。
- -D覆盖与脚本初始化有关,不能保证任意变量覆盖生效;字符串引号按实际shell处理。
- Windows openscad.com说明不是本机执行验证。
- 几何可解析不等于可制造或打印就绪;当前版本、平台、费用和完整网络行为unknown。
使用步骤:
- 准备已获授权的最小输入,核对本profile的适用范围、认证与费用;不填私人信息或凭据到公开示例。
- openscad -o output.stl -D "width=100" input.scad
- 未来获准执行后核对实际诊断、输出文件或对象与输入条件,保留缺项和运行错误;本次没有执行此步骤。
- 输入约定
- 可信本地SCAD源文件与-D var=val参数覆盖;示例width须由实际脚本正确使用,不保证任意脚本接受此名字。
- 输出约定
- -o指定独立STL输出;扩展名决定输出类型。不将其他PNG/SVG能力一并验收。
- 成功检查
- 未来核目标版本和实际SCAD参数,在独立输出路径检查STL及预期尺寸;不执行不可信脚本,不把2019.05当已安装版本。
- 失败与回退
- 条件不满足、认证/限流/结构错误即停止该调用并保留unknown;不切换付费服务、不猜工具名、不执行写操作。
适用证据
openscad-parametric-stl-documentation-e1 · 来源文档声明
- 原文定位
- .local/deep-cards-v1/cli-sdk-batch-20261024-05/sources/openscad-parametric-stl-documentation.txt:L14-L23
- 来源版本
- documentation-sha256:f24734b9de90c5cad3cca10292eb3f48ec7571edeff665ed525db2616a43b057
- 内容摘要
- f24734b9de90c5cad3cca10292eb3f48ec7571edeff665ed525db2616a43b057
- 采集时间
- 2026-10-20T12:08:03.8609730+00:00
Command line usage OpenSCAD can not only be used as a GUI, but also handles command line arguments. Its usage line says: OpenSCAD 2019.05 has these options: Usage: openscad [options] file.scad Allowed options: -o [ --o ] arg output specified file instead of running the GUI, the file extension specifies the type: stl, off, amf, 3mf, csg, dxf, svg, png, echo, ast, term, nef3, nefdbg -D [ --D ] arg var=val -pre-define variables
覆盖条件:invocation_mode=cli
openscad-parametric-stl-documentation-e2 · 来源文档声明
- 原文定位
- .local/deep-cards-v1/cli-sdk-batch-20261024-05/sources/openscad-parametric-stl-documentation.txt:L108-L116
- 来源版本
- documentation-sha256:f24734b9de90c5cad3cca10292eb3f48ec7571edeff665ed525db2616a43b057
- 内容摘要
- f24734b9de90c5cad3cca10292eb3f48ec7571edeff665ed525db2616a43b057
- 采集时间
- 2026-10-20T12:08:03.8609730+00:00
In order to pre-define variables, use the -D option. It can be given repeatedly. Each occurrence of -D must be followed by an assignment. Unlike normal OpenSCAD assignments, these assignments don't define variables, but constants, which cannot be changed inside the program, and can thus be used to overwrite values defined in the program at export time. If you want to assign the -D variable to another variable, the -D variable MUST be initialized in the main .scad program param1=17; // must be initialized val=param1; // param1 passed via -D on cmd-line echo(val,param1); // outputs 17,17 without the first line, val would be undefined. The right hand sides can be arbitrary OpenSCAD expressions, including mathematical operations and strings. Be aware that your shell (bash, cmd, etc.) parses the arguments before passing them to openscad, therefore you need to properly quote or escape arguments with special characters like spaces or quotation marks. For example to assign a string production to a quality parameter one has to ensure the " characters OpenSCAD expects aren't stripped by the shell. In bash one could write: openscad -o my_model_production.stl -D 'quality="production"' my_model.scad
覆盖条件:invocation_mode=cli
结构化配方尚未提供或不适用于本版本;旧用法文字保留,连接与执行结果未知。