f360_insert_decal_rpa is a Python library for Robotic Process Automation (RPA) of Autodesk Fusion (f.k.a. Fusion 360)'s Insert -> Decal -> Insert from my computer operation. Before Oct. 2024, F360 didn't have Decal APIs to do it. So I needed to automate. Now F360 have it, but it doesn't work in direct modeling mode yet (10/2/2024). See: Decal API in direct modeling mode raises "RuntimeError: 2 : InternalValidationError : timelineObj"
- Windows only. I'm not familiar with Mac. But you can use it as a stub (no decals) for compatibility.
- Very slow.
- Not pixel-wise precise. F360 itself doesn't have much precision about decals.
I recommend you to do Regression test first, because RPA easily corrupts for environmental changes. F360 updates rapidly.
-
git clone
this repository. -
Open terminal in the repository directory, and configure PATH env to F360's embedded python.exe.
-
python -m pip install .[dev] -t app-packages
-
In F360, open Scripts and Ad-ins dialog, click on "+" icon in Script tab, and specify the repository directory.
-
Choose f360_insert_decal_rpa Regression Test and run it.
-
git clone
this repository, and open terminal in the repository directory. -
mkdir app-packages
-
In F360, open Scripts and Ad-ins dialog, click on "+" icon in Script tab, and specify the repository directory.
-
Choose f360_insert_decal_rpa Regression Test and run it.
It is just a smoke test.
-
git clone
this repository. -
In your script / add-in directory,
python -m pip install {path to f360_insert_decal_rpa repository directory} -t app-packages
Use embedded python in F360.
- Look at
f360_insert_decal_rpa Regression Test.py
and incorporate the usage to your script / add-in.
Don't forget to add app-packages
directory to sys.path
in your script / add-in. The name app-packages
is just an example.
You can name app-packages
as you like.
-
git clone
this repository. -
In your script / add-in directory,
pip3.12 install {path to f360_insert_decal_rpa repository directory} -t app-packages
Use python 3.12 for Mac distributed by python.org or Homebrew. Why not embedded python in F360? F360 for Mac has a bug (wrong PYTHONPATH for Edit button -> VSCode -> terminal) and it makes troublesome to use embedded python.
- Look at
f360_insert_decal_rpa Regression Test.py
and incorporate the usage to your script / add-in.
Don't forget to add app-packages
directory to sys.path
in your script / add-in. The name app-packages
is just an example.
You can name app-packages
as you like.