Share

Application.openedFromURL Event

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

Description

The openedFromURL event fires after the user has clicked a link in a web page that uses the Fusion protocol handler to create a new using an existing file as the initial contents and that operation has completed.

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_openedFromURL" is the event handler function.
futil.add_handler(application_var.openedFromURL, application_openedFromURL, local_handlers=local_handlers)

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

Property Value

This is an event property that returns a WebRequestEvent.

Version

Introduced in version May 2016

Was this information helpful?