acad-geometry

Define and manipulate 2D/3D geometry primitives within the AutoCAD .NET API.

3|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/hebackus/c3d-api-plugin --skill acad-geometry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: acad-geometry
Source: https://github.com/hebackus/c3d-api-plugin/tree/main/skills/acad-geometry
Command: npx skills add https://github.com/hebackus/c3d-api-plugin --skill acad-geometry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AutoCAD geometry is fundamental but error-prone when manually computing distances, transforms, intersections, and coordinate conversions across 2D/3D spaces. This skill provides robust primitives and patterns for reliable geometric math and transformations within the AutoCAD .NET API context.

Core Features & Use Cases

  • Point2d/Point3d, Vector2d/Vector3d, and Matrix3d helpers for common CAD math.
  • Operators and methods for distance, projection, rotation, and transformation across WCS/UCS/OCS.
  • Lines, Arcs, Circles, and Curves with intersection and bounding volume utilities.
  • Tolerance handling, extents/bounds, and coordinate system conversions for accurate CAD computations.
  • Real-world recipes and gotchas to avoid typical pitfalls when scripting geometry.

Quick Start

Calculate the distance between two sample points and rotate one point around a center by 90 degrees.

Frequently Asked Questions about acad-geometry

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

FAQPage Schema
How do I calculate distances and rotate points in AutoCAD .NET API?

To calculate distances and rotate points in AutoCAD .NET, use Point3d distance methods and Matrix3d rotation transforms. Apply the rotation matrix to the point vector around a specified center coordinate to achieve precise 2D/3D positioning.

What's the best way to convert between WCS, UCS, and OCS coordinate systems in AutoCAD?

Converting between WCS, UCS, and OCS coordinate systems in AutoCAD requires Matrix3d transformation helpers. Multiply the source point by the appropriate coordinate system transformation matrix to accurately map geometry across different reference frames.

How do I find intersections between lines, arcs, and curves in AutoCAD .NET?

Finding intersections between lines, arcs, and curves in AutoCAD .NET uses built-in methods on Line3d and CircularArc3d objects. Call the intersection API with a specified tolerance to reliably compute crossing points for 2D/3D CAD geometry.

Does AutoCAD .NET API provide built-in tolerance handling for geometric computations?

AutoCAD .NET API provides tolerance handling for geometric computations through Tolerance objects. Pass these tolerance parameters to intersection and distance methods to control floating-point precision and avoid common edge-case errors in CAD math.

Why are my AutoCAD 3D point and vector transformations producing incorrect results?

Incorrect AutoCAD 3D point and vector transformations often result from mismatched coordinate systems or improper matrix multiplication order. Validate Matrix3d operations and ensure vectors are transformed using the correct basis vectors for the target coordinate space.

Can I use AutoCAD .NET API to compute bounding volumes for 3D curves and arcs?

You can compute bounding volumes for 3D curves and arcs using the AutoCAD .NET API. Access the extents or bounds properties of Curve and CircularArc3d objects to retrieve the minimum bounding box coordinates for your geometric primitives.