Connectivity Automation Objects [Connectivity Automation Reference: CAR]

AutoCAD Connectivity Automation Objects

Connectivity Automation Objects

Connectivity Automation Objects (CAO) support the following dbConnect features:

  • Event Notifications
  • Key Descriptions
  • Key Values
  • Label Templates
  • Labels
  • Link Templates
  • Links
  • Queries
You can also create dbConnect objects.

Beginning with AutoCAD 2002, CAO supports the following objects, methods, and properties:

  • Objects and methods: CAO objects include the LabelTemplates collection, LabelTemplate object, Label object, Queries collection, and Query object, along with their corresponding methods. The KeyDescriptions and KeyValues collections are independent objects. KeyDescriptions no longer derives from the LinkTemplate object, and KeyValues no longer derives from the Link object. The KeyValues Add method accepts two arguments: field name and value, rather than a single object argument.
  • Properties: The KeyDescription Type property is now a CAO data type, rather than an OLEDB data type.
  • Event notifications: The DbConnect object uses event notifications.

You can find sample code demonstrating the use of CAO in the AutoCAD sample\Database Connectivity\CAO directory.

Topics in this Section: