-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBackupProject.py
More file actions
32 lines (24 loc) · 974 Bytes
/
BackupProject.py
File metadata and controls
32 lines (24 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Fusion 360 Add-in: Backup Project
This add-in adds a "Backup Project" command to Fusion 360, enabling users to
export and save all supported files from the currently active Fusion 360 project
to a user-defined local folder. The add-in preserves the project folder
structure, sanitizes invalid file names, displays progress feedback, and reports
any issues encountered during the backup process.
"""
from . import commands
from .lib import fusionAddInUtils as futil
def run(context):
try:
# This will run the start function in each of your commands as defined in commands/__init__.py
commands.start()
except:
futil.handle_error('run')
def stop(context):
try:
# Remove all of the event handlers your app has created
futil.clear_handlers()
# This will run the start function in each of your commands as defined in commands/__init__.py
commands.stop()
except:
futil.handle_error('stop')