Data Object

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

Description

The Data class provides access to data files

Methods

Name Description
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().
findFileById Returns the DataFile identified by the input id. This can fail is there isn't a DataFile identified with the specified id or if the current user doesn't have privileges to access the file.
refreshDataPanel Refreshes the contents of the data panel to ensure what is displayed reflects the latest state.

Properties

Name Description
activeFolder Gets the active DataFolder as seen in the Fusion Data Panel.
activeHub Gets the active DataHub.
activeProject Gets and sets the active DataProject. This is the project currently displayed in the Fusion Data Panel.
dataHubs Returns a collection of accessible hubs for the current user. A DataHub represents an A360 Team or Personal hub.
dataProjects Gets the collection of DataProjects associated with the active Hub.
isDataPanelVisible Gets and sets if the data panel is visible within Fusion.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
personalUseLimits If the user is running with a "Fusion for Personal Use license", this property will return a peronalUseLimits object which provides information about file limits associated with the license. If the user is running with any other license type, this property will return null.

Accessed From

Application.data

Version

Introduced in version January 2015