SuperAPI AI Directory

cadcraft-bolt-circle

Design & creation

View repository

Updated 11-04 23:01

About this skill

Equal-angle hole distribution drawing

First verify units, center point, outer diameter, center hole diameter, pitch circle diameter, hole diameter, hole count, and start angle. Diameters must be divided by two before passing to radius; count includes the original seed hole. The following dimensions are only modifiable drawing examples, not a manufacturing design.

ReadMethod and parameters、Original steps、Command evidenceandGitHub source。

  1. For an existing drawing, first use inspect and getvar to read units, entities, and the target area, and preserve the input. A standalone script only creates a new drawing and must not be used to overwrite an existing project.
  2. Layer by outer profile/holes/pitch circle reference/dimensions; the pitch circle is not a machined hole. Operate only on the seed circle created for the current task.
  3. Use the real handle returned by circle to call arraypolar; do not hardcode 100, and do not select all circles on the layer into the array. angle is fixed at 360, and count is the total number of holes around the full circumference.
  4. Read back each hole's center, radius, and layer; sort angles modulo 360 and check the gap between the first and last to prevent duplicate holes at 0/360. When non-associative array parameters change, rebuild from the original input; do not array all old holes again.
  5. Generate native radius dimensions from the same hole center/circumference point, and do not cover values with text. Keep the DXF and export PNG/SVG, then reopen to measure and check for dimension occlusion.

CLI new drawing execution

python3 <本技能目录>/scripts/draw_bolt_circle.py --cli <cadcraft-cli路径> --output <新输出.dxf> --count 6 --pitch-radius 40 --hole-radius 3 --outer-radius 55 --bore-radius 15

can add--start-angle 30 --center 100 50. Parameters use radius and millimeters, and angles use degrees. The executor calls the real CLI via argv with no shell concatenation; it rejects non-finite numbers, boolean JSON values, overlapping holes, boundary intersections, and existing output, and the ASCII-escaped JSON preserves Chinese paths. The geometry check only describes two-dimensional intersection relationships and does not mean margins or strength are acceptable.

Same-screen MCP

Hand off to the cadcraft-editor skill, installed separately:npx skills add full-aigc-skills/cadcraft-skills --skill cadcraft-editor. After editor_status is ready, read the current execute schema; in the same session, execute one by one, capture the seed handle and replace subsequent parameters, and save and render still in that session. You must not start another CLI process to modify the file and then claim the embedded screen is already synchronized.

Record this skill's native run, Windows, and host synchronization status separately; a target platform that has not been run cannot be considered passing.