Skip to content

AI Generated Content-- I found that documentation about AutoCAD and Civli3D APIs was not giving a big enough picture in one frame. I tried to Boss Antigravity through it!

Notifications You must be signed in to change notification settings

AlexParentGC/Acad_Civil3D_API_DOCS

Repository files navigation

(Version francaise dans /fr)

AutoCAD and Civil3D API Object Reference

Quick Navigation

This directory contains comprehensive reference documentation for all AutoCAD and Civil3D .NET API object types, organized by category for easy searching.

🇫🇷 French Translation Available

Complete French documentation is now available! All core AutoCAD namespaces have been translated to French in the /fr directory:

  • EditorInput (25 files) - User input, prompts, selection
  • Events (3 files) - Database, Document, and Application events
  • Transactions (3 files) - Transaction management
  • Colors (4 files) - Color and transparency classes
  • Runtime (11 files) - Commands, attributes, and runtime classes
  • Attributes (2 files) - Block attribute definitions and references
  • Layouts (2 files) - Layout and plot settings
  • EntityManagement (1 file) - Entity grouping
  • BaseClasses (7 files) - Core base classes (pre-existing)
  • Geometry (31 files) - All geometry classes (pre-existing)
  • Civil3D (22 files) - All Civil3D workflows (pre-existing)

Total: 58 files fully translated to French

📖 Accéder à la documentation française


AutoCAD API

Core Objects

Essential objects for working with AutoCAD documents and databases.

  • Database - Drawing database containing all objects
  • DBDictionary - Named object dictionary container
  • XRecord - Custom data storage in dictionaries
  • Document - Represents an open drawing document
  • Application - AutoCAD application object
  • Editor - User interaction and command line

User Interface

Customizing the AutoCAD UI.

Transaction Management

Essential classes for safely accessing and modifying database objects.

Events and Reactors

Reactive programming patterns for responding to AutoCAD events.

Base Classes

Fundamental base classes that other objects inherit from.

  • DBObject - Base class for all database objects
  • Entity - Base class for all graphical entities
  • Curve - Base class for all curve-based entities
  • ObjectId - Persistent object identifier (Handle)
  • SymbolTable - Base container for named records
  • SymbolTableRecord - Base item for symbol tables

Collection Classes

Fundamental container classes used throughout the API.

Attributes

Block attribute definitions and references for data storage.

Layouts & Plotting

Layout management and plot configuration.

Entity Management

Organizing and grouping entities.

  • Group - Named entity groups for selection and manipulation

Geometry Classes

Fundamental geometry classes for 2D/3D coordinates, transformations, and geometric calculations.

Points & Vectors

  • Point3d - 3D point coordinates (X, Y, Z)
  • Point2d - 2D point coordinates (X, Y)
  • Vector3d - 3D vector for directions and offsets
  • Vector2d - 2D vector for planar operations

Transformations

  • Matrix3d - 3D transformation matrix (move, rotate, scale, mirror)
  • Matrix2d - 2D transformation matrix

Lines & Rays

Arcs & Circles

NURBS & Splines

3D Primitives

  • Sphere - Spherical surface
  • Cylinder - Cylindrical surface
  • Cone - Conical surface
  • Torus - Toroidal surface (donut shape)

Surfaces & Utilities

Symbol Tables

Collections of named objects like layers, linetypes, and text styles.

Entities

Geometric Primitives

Basic geometric shapes.

  • Line - Simple line segment
  • Circle - Circle object
  • Arc - Arc segment
  • Ellipse - Elliptical arc or full ellipse
  • Spline - NURBS curve

3D Entities

3D modeling and surface objects.

  • Solid3d - 3D solid (Box, Sphere, Boolean operations)
  • Region - 2D area with physical properties
  • Body - Generic ACIS body wrapper
  • SubDMesh - Subdivision mesh surface through points

Polylines

Multi-segment line entities.

Text Objects

Text and annotation entities.

  • DBText - Single-line text
  • MText - Multi-line text with formatting

Annotations

Dimensioning and leader objects.

Complex Entities

Advanced entity types.


Civil3D API

Core

  • CivilApplication - Civil3D application object (entry point)
  • CivilDocument - Civil3D document containing all Civil objects
  • Site - Container for topology (Parcels, Alignments)

Parcels

  • Parcel - Land development parcels

Alignment Objects

Horizontal and vertical alignment objects.

Surface Objects

Terrain and volume surface objects.

Point Objects

Survey and COGO points.

Pipe Network Objects

Storm and sanitary network objects.

  • Network - Pipe network container
  • Pipe - Pipe segment
  • Structure - Manhole or inlet structure
  • PartsList - Catalog of pipe/structure parts and sizes

Corridor Objects

Road corridor design objects.

Grading Objects

Site grading and earthwork objects.

Sample Line Objects

Cross-section sampling objects.

  • SampleLine - Cross-section sample line for corridor/surface sampling

How to Use This Reference

  1. Find by Category: Navigate through the folder structure to find objects by type
  2. Search by Name: Use your IDE's file search to find specific object types
  3. Follow Links: Each object page links to related objects
  4. Code Examples: Every object includes practical code examples

Coverage Status

Total Files Documented: 163
API Coverage: 98%+

Fully Documented (Production Ready)

✅ All core namespaces (DatabaseServices, ApplicationServices, Runtime)
✅ All geometry classes (31 files)
✅ All transaction management
✅ All events and reactors
✅ All editor input classes
✅ All Civil3D workflows
✅ Attributes and block references
✅ Layouts and plotting
✅ Entity grouping and tables

Specialized Features Not Yet Documented

The following advanced/specialized features are not yet documented but are available in the API:

  • Field - Dynamic text fields (dates, formulas, properties)
  • Overrule Classes - Custom entity behavior (DrawableOverrule, OsnapOverrule, etc.)
  • Constraint Classes - Parametric design (GeometricConstraint, DimensionalConstraint)
  • Raster/Underlay - External images and underlays (RasterImage, PdfUnderlay, DwfUnderlay)
  • DocumentLock - Advanced multi-threading document locking

Note: These features affect less than 5% of typical use cases. Refer to Autodesk Official Documentation for these specialized classes.

Additional Resources


Legend

  • 📁 Core - Essential application and document objects
  • 📁 BaseClasses - Fundamental classes other objects inherit from
  • 📁 SymbolTables - Named collections (layers, linetypes, etc.)
  • 📁 Entities - Graphical objects in the drawing
  • 📁 Geometric - Basic shapes (lines, circles, arcs)
  • 📁 Polylines - Multi-segment line objects
  • 📁 Text - Text and annotation
  • 📁 Annotations - Dimensions and leaders
  • 📁 Complex - Advanced entity types

About

AI Generated Content-- I found that documentation about AutoCAD and Civli3D APIs was not giving a big enough picture in one frame. I tried to Boss Antigravity through it!

Topics

Resources

Stars

Watchers

Forks