Share

Application.dataFileComplete Event

Parent Object: Application
Defined in namespace "adsk::core" and the header file is <Core/Application/Application.h>

Description

The dataFileComplete event fires when a data file upload has completed including any cloud side translations.

Syntax

-------- Import ---------
# Import fusion360utils folder, which includes event_utils.py.
from ...lib import fusion360utils as futil

-------- Global variables ---------
# Global variable used to maintain a reference to all event handlers.
local_handlers = []

-------- Connect the handler to the event. ---------
# "application_var" is a variable referencing an Application object.
# "application_dataFileComplete" is the event handler function.
futil.add_handler(application_var.dataFileComplete, application_dataFileComplete, local_handlers=local_handlers)

-------- Event handler function definition ---------
# Event handler for the dataFileComplete event.
def application_dataFileComplete(args: adsk.core.DataEventArgs):
# Code to react to the event.
app.log('In application_dataFileComplete event handler.')

Property Value

This is an event property that returns a DataEvent.

Samples

Name Description
Save and Insert File API Sample Demonstrates creating save a new file and then inserting it into a design. To use this sample, have a design open that has been saved and run the script. It will create a new design that contains a cylinder, save it to the same folder the active design was saved to, and then insert it into the active design.

Version

Introduced in version January 2022

Was this information helpful?