← 返回
未分类 中文

Onshape Featurescript

Generate and modify Onshape FeatureScript code for custom CAD features, focusing on dust collection fittings like wyes, elbows, and adapters.
生成和修改Onshape FeatureScript代码,创建自定义CAD特征,专注于除尘管道配件(如三通、弯头、接头)。
bryko bryko 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 449
下载
💾 1
安装
1
版本
#latest

概述

Onshape FeatureScript Generator

Quick Start

Analyze request → Match pattern → Gen FS code → Validate logic.

Core Workflow:

  1. Precondition: Enums/lengths/reals w/ bounds.
  2. Body: Sketches → Extrudes → Booleans → Shell → Wrap/Thicken labels.
  3. Pitfalls: qOwnedByBody(finalBody), if/else (no ternary lengths), cylinder(coordSystem).

Key Patterns (Memorize)

  • Enum + Cond Param:

```

export enum AlignmentStyle { Centered, Tangent, Offset };

if (definition.alignment == AlignmentStyle.Offset) { isLength(def.offsetDistance...); }

```

  • Safe Shell Caps:

```

var capFaces = qFacesParallelToDirection(qOwnedByBody(finalBody, EntityType.FACE), vector(0,1,0));

```

  • Union Primary First:

```

qUnion([qCreatedBy(id+"inlet", EntityType.BODY), ...]);

```

  • Wrapped Label: skText → opWrap → opThicken.

Dust Fittings Lib

Z-axis: Inlet Z=0 (-Z), Outlet Z=trans (+Z), Branch +X.

See FITTINGS.md for full spec/pitfalls.

Resources

  • API Patterns: PATTERNS.md
  • Fonts: AllertaStencil-Regular.ttf for labels.
  • Validate: Test mentally; no runtime here.

Gen code → User pastes to Onshape FS editor.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 21:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 182,060
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,693
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 328,109