Share

Acad.DataItemCollection.addEventListener Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.DataItemCollection.addEventListener(eventname, fn);

Group

ACAD Namespace

Parameters

Parameter Description
eventname is the name of the event you want to register. It can be one of the events in Acad.DataItemCollection.eventname.
fn is the callback that is called when the event is triggered. The signature for fn should be fn(eventname,dataItems) {,,}

Description

Use this function to add event listeners for the Acad.DataItemCollection class.

Exception

Throws a TypeError or Error object based on the problem encountered.

ACAD Namespace

Was this information helpful?