Fusion 360 Project Data Importer
Script to import local documents into a new project and folder structure based on local folder structure.
Also has option to export a project to be used for the import script.
How to install
Could update this based on the permanent download location.
- Insert link to Download Zip
- For now download the repo from here.
- Rename zip file to be:
ProjectDataImporter
- Un-Zip to any convenient location.
Important! Directory must have the same name as the python script
How to use import
-
Open the config.py file
-
Ensure the value of
DO_EXPORT
is set to:False
-
On the main toolbar click the Scripts and Addins button in the Addins Panel
-
Click the green plus button and navigate to the script directory.
-
Now on the Scripts tab and find: ProjectDataImporter.
-
Click run.
The script will now import all Fusion 360 files in the local directory.
How to use export
-
Open the config.py file
-
Change the value of
DO_EXPORT
to:True
-
In the data panel navigate to the project you want to export.
-
Follow steps above to run the script
-
Select OK to confirm running the export. This may take some time...
The add-in will export all Fusion 360 files in the active project.
You can view results of the export by expanding the Text Commands palette.
It is important to note that assemblies with XREFS and Drawings must be manually exported as f3z files.
After manually exporting f3z files, simply place them in the appropriate position in the local folder structure.
Configuration Options
Open the config.py
file.
You can set a number of options that may be useful when developing the dataset.
These options are primarily provided for use while testing and configuring the initial dataset that will be provided in the final distribution.
Before distribution these should probably be set to the appropriate defaults.
# *************************** Script Options ****************************
# Fusion 360 Project Name
PROJECT_NAME = 'Project Import Test'
# Name of local folder for Fusion 360 Files
LOCAL_FUSION_FOLDER = 'FusionFiles'
# When set to True, it will export the active Fusion 360 project
# This will also disable the import function
DO_EXPORT = True
# When set True, it will skip import when file already exists in project
SKIP_IMPORT_ON_DUPLICATES = True
# When set True, it will skip exporting files with parent references
SKIP_EXPORT_ON_PARENTS = True
# When set True, it will skip exporting files with child references
SKIP_EXPORT_ON_CHILDREN = True
# When set True, will skip export when file already exists in folder
SKIP_EXPORT_ON_DUPLICATES = True
# When set True, will show text command palettes automatically
# Particularly useful when running export command
# For mass distribution should probably be set False
AUTO_SHOW_TEXT_COMMAND_PALETTE = False
# ***********************************************************************
License
Copyright 2022 by Patrick Rainsberry
AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC. DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE UNINTERRUPTED OR ERROR FREE.
Samples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.
Written by
Written by Patrick Rainsberry
(Product Manager, Autodesk Fusion 360)