Skip to content

API Reference

Auto-generated from source docstrings. All classes and public methods are documented here.

Modules

Module Description
AutoCAD Adapter Main composite adapter class
Adapter Manager Registry singleton for managing adapter lifecycle
Mixins
Connection COM connection and lifecycle
Drawing Geometric entity creation
Export Excel export and entity data extraction
Layer Layer management
Block Block definition and insertion
Manipulation Entity transform operations
Selection Entity selection
File Drawing file operations
View Viewport and undo/redo
Entity Entity property access
Utility Helpers and converters
MCP Tools Tool registration layer
Core Interfaces, config, exceptions

Quick Start

from adapters import AutoCADAdapter

# Connect to a running AutoCAD instance
adapter = AutoCADAdapter("autocad")
adapter.connect()

# Draw entities
handle = adapter.draw_line((0, 0), (100, 0), layer="0", color="white")

# Export to Excel
adapter.export_to_excel("output.xlsx")