Hi there!
I'm a total noob when it comes to scripting and python, so I wanted to run an idea past y'all as a sanity test and perhaps get some advice. 🙂
I'm modeling a set of dice for Dungeons and Dragons, and between all of the different components I've got 72 sketches just for the text components (the specific sketches have text numbers as well as some construction geometry). Is there a way to make a script/add-in/macro that would go through those sketches, and if there's a text object change the font to one I'd define on a drop-down list? That way I don't have to go through each sketch individually and choose the font from the drop-down list.
If it is possible, any advice pointing me in the right direction would be greatly appreciated! Thank you for your time and making the fusion 360 community great!
Solved! Go to Solution.
Solved by kandennti. Go to Solution.
Hi @mtroutt.cpp .
I am Japanese, but I have played Dungeons and Dragons when I was a kid. I miss it.
"I want to change the font of all sketch text in one operation." Is that your question?
In Fusion360, I don't think it is possible to create user parameters whose values are characters such as font names.
So I created a script to change the font for all sketch text in the active document. I've attached the file.
(In case you're wondering, it's python.)
You can select the font to be changed in the drop-down menu.
This list has been created manually as a CSV file using this method.
https://forums.autodesk.com/t5/fusion-360-api-and-scripts/use-textcommands2/m-p/9937199#M12120
Since I am using it in Japanese, it must contain several undesirable font names.
I thought it would be desirable to use the method described by @JeromeBriot , but I didn't use it because I needed to install an external library.