DataEvent Object

Derived from: Event Object
Defined in namespace "adsk::core" and the header file is <Core/Dashboard/DataEvent.h>

Description

A Data event is an event associated with operations on Data items.

Methods

Name Description
add

Add a handler to be notified when the data event occurs.

classType

Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().

remove

Removes a handler from the event.

Properties

Name Description
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
name The name of the event - e.g. "DocumentOpening"
objectType Returns a string indicating the type of the object.
sender The object that is firing the event. For example, in the case of a command input event this will return the command.

Accessed From

Application.dataFileComplete, Application.dataFileCopyComplete

Version

Introduced in version January 2022