Reference

Wrapper

fusion_addin_framework.FusionAddin

Entry point to create all your elements that will appear in the user interface.

fusion_addin_framework.Workspace

Wraps around Fusions Workspace object.

fusion_addin_framework.Tab

Wraps around Fusions Tab object.

fusion_addin_framework.Panel

Wraps around the Panel object.

fusion_addin_framework.Dropdown

Wraps around Fusions Dropdown object.

fusion_addin_framework.Control

Wraps around Fusions CommandControl object.

fusion_addin_framework.AddinCommand

Wraps around Fusions CommandDefinition object and its ControlDefintion attribute.

fusion_addin_framework.AddinCommandBase

Wraps around Fusions CommandDefinition object and its ControlDefintion attribute.

Utilities

fusion_addin_framework.utils.create_logger

Sets up a logger instance with the provided settings.

fusion_addin_framework.utils.TextPaletteLoggingHandler

Logging handler utilizing Fusions text command pallete.

fusion_addin_framework.utils.InputIdsBase

A Enum subclass which values are of type <name>_input_type.

fusion_addin_framework.utils.get_values

Extracts the command values from the given CommandInputs collections and maps them to the id of their command.

fusion_addin_framework.utils.AppObjects

Collection allowing simplified access to frequtnly used API objects.

fusion_addin_framework.utils.new_component

Creates a new component.

fusion_addin_framework.utils.delete_component

Deletes a component by deleting all its occurrences in the design.

fusion_addin_framework.utils.make_comp_invisible

Disables the visibility of all occurrences of the passed component.

fusion_addin_framework.utils.clear_collection

Safely clears a collection.

fusion_addin_framework.utils.items_by_attribute

Returns all objects of a collections whose attribute with the given name have the given value.

fusion_addin_framework.utils.get_data_folder

Searches the data hub for a data folder at the given “fusion path”.

fusion_addin_framework.utils.get_doc

Searches the data hub for a document folder at the given “fusion path”.

fusion_addin_framework.utils.view_extents_by_measure

Returns the viewExtents parameter so the given model measure fits exactly into the viewport.

fusion_addin_framework.utils.view_extent_by_rectangle

Returns theviewExtens parameter so that a rectangle ith the given design measures will fit into the viewport.

fusion_addin_framework.utils.set_camera_viewarea

Returns a camera which is condifured so that the vieport certainly displays the area defioned by the horizonal and vertical extent parameters.

fusion_addin_framework.utils.set_camera_viewcube

Creates a camera which is oriented in the same way as a click on a edge or corner of the viewcube would do.

fusion_addin_framework.utils.camera_zoom

Adjusts the cameras viewWxtents by zooming.

fusion_addin_framework.utils.ui_ids_dict

Dumps the ids of the fusion user interface element to a hierachical dict.

fusion_addin_framework.utils.get_appearance

Gets the appearance with the passed name from the Fusion 360 Appearance Library.

fusion_addin_framework.utils.orient_bounding_box

Converts a bounding box into an oriented bounding box.

fusion_addin_framework.utils.delete_all_graphics

Deletes all custom grpahics in the design.

fusion_addin_framework.utils.create_cube

Creates a simple cube using the TemporaryBRepManager.

fusion_addin_framework.utils.get_json_attribute

Gets the json loaded attributes of a object.

fusion_addin_framework.utils.create_progress_dialog

Simple utility which can be used to declarative create a new progress dialog.

fusion_addin_framework.utils.get_json_from_file

Gets the json decoded data from the file if the file exists and creates the file if its not exists.

fusion_addin_framework.utils.make_ordinal

Convert an integer into its ordinal representation.

fusion_addin_framework.utils.AnnotatedTimer

This constructor should always be called with keyword arguments.

fusion_addin_framework.utils.PeriodicExecuter

Creates an executer which executes the passed action periodically.

fusion_addin_framework.utils.create_custom_event

Creates and registers a custom event.

fusion_addin_framework.utils.execute_from_event

Utility function which allows you to execute the passed Callable from witihn a custom event.

fusion_addin_framework.utils.execute_from_event_deco

Utility decorator which allows you to execute the passed Callable from witihn a custom event.