cad-viewer

Starts a local CAD Viewer server and returns review links for CAD and robot-description files.

465|41|Updated Aug 4, 2026
One-click install
npx skills add https://github.com/autonomous-ai/openharness --skill cad-viewer-autonomous-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cad-viewer
Source: https://github.com/autonomous-ai/openharness/tree/main/store/agents/text-to-cad/skills/cad-viewer
Command: npx skills add https://github.com/autonomous-ai/openharness --skill cad-viewer-autonomous-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cadgen, and includes references (resource) components.

What problem does it solve? Reviewing generated or imported CAD and robot-description files requires a visual tool, and manually setting up a viewer, picking ports, and constructing links is repetitive and error-prone. This Skill launches the CAD Viewer for a chosen workspace directory and hands back ready-to-open review URLs. ## Core Features & Use Cases - Viewer Launch and Reuse: Starts a CAD Viewer server from the chosen workspace directory, reusing an existing instance when one already serves that directory, and returns the live URL as machine-readable JSON. - Multi-Format Review Links: Produces one deep link per file for .step, .stp, .glb, .stl, .3mf, .dxf, .urdf, .srdf, and .sdf artifacts, all sharing one browsable catalog rooted at the launch directory. - Use Case: After a CAD generation skill produces models/gripper/STEP/gear_rack_gripper.step, launch the Viewer from the project's models/ directory and return http://127.0.0.1:3245/?file=gripper/STEP/gear_rack_gripper.step so the user can inspect the part, its assembly tree, and measurements in the browser. ## Quick Start Use the cad-viewer skill to open my generated STEP file in CAD Viewer and give me the review link.

Frequently Asked Questions about cad-viewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I view STEP files in a browser locally?▼

Install the cadgen package with pip, then run cadgen viewer from the directory containing your models. It starts a local server and prints a URL; append ?file=<relative path> to open a specific STEP file in the browser.

What file formats does CAD Viewer support?▼

CAD Viewer supports STEP/STP with assembly trees and measurement, mesh formats GLB, STL, and 3MF, read-only DXF flat-pattern viewing, and robot-description formats URDF, SRDF, and SDF with joint controls.

Can CAD Viewer open URDF and SDF robot files?▼

Yes, CAD Viewer renders URDF links and meshes with movable joint sliders, SRDF planning groups and group-state presets, and SDF models or worlds with metadata and joint controls. Launch the Viewer from the directory containing the robot description files.

Why does the CAD Viewer link show the wrong files?▼

Each Viewer instance serves only the directory it was launched from, fixed for the process lifetime. If the catalog shows the wrong files, stop the instance and relaunch from the correct workspace root, typically the project's models directory.

Does CAD Viewer generate or compile CAD models?▼

No, the Viewer only renders artifacts that already exist on disk. Generated models must be built first by running their model script; a STEP document with no compiled tree in the store is compiled from its bytes when opened.