Install
openclaw skills install onshape-featurescriptGenerate and modify Onshape FeatureScript code for custom CAD features, focusing on dust collection fittings like wyes, elbows, and adapters.
openclaw skills install onshape-featurescriptAnalyze request → Match pattern → Gen FS code → Validate logic.
Core Workflow:
export enum AlignmentStyle { Centered, Tangent, Offset };
if (definition.alignment == AlignmentStyle.Offset) { isLength(def.offsetDistance...); }
var capFaces = qFacesParallelToDirection(qOwnedByBody(finalBody, EntityType.FACE), vector(0,1,0));
qUnion([qCreatedBy(id+"inlet", EntityType.BODY), ...]);
Z-axis: Inlet Z=0 (-Z), Outlet Z=trans (+Z), Branch +X. See FITTINGS.md for full spec/pitfalls.
Gen code → User pastes to Onshape FS editor.