JavaScript Application Programming Interface (API) for AutoCAD
ContentsIndexHome
PreviousUpNext
Acad.Application.activedocument.startObserving Function

Autodesk.AutoCAD.js

JavaScript
function Acad.Application.activedocument.startObserving(oset,eventname,fn);
Parameters 
Description 
oset 
is the object to be observed. 
eventname 
is an event for which callback would be called, possible values are "valueChanged" and "activated". 
fn 
is a callback function, which is called when an event occurs. 

Use this function to subscribe to object event notifications for an object.

Links
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!