A new Fusion 360 update went out today and it has several new features in the API.
One of the highlights of this release is the addition of the new table command input. This will allow a much nicer interface for many commands and provide the ability to create some commands that just weren’t possible before. What a table command input provides is the ability to arrange other command inputs within rows and columns. Below are some examples where Fusion uses a table command input in commands. The first table in the Loft command has three columns where the first column is a read-only StringCommandInput, and the second and third are both DropDownCommandInputs. The Properties command just uses read-only StringCommandInput objects to display text. And you can see that the Scene Settings dialog uses an ImageCommandInput so it’s very flexible.
In addition to arranging command inputs in rows and columns it also supports the ability to have a toolbar that contains command inputs. That’s how the “+” and “x” buttons are done in the Profiles and Lofts tables.
- Some additional Data Panel related functionality has been added to the API. You now have access to all hubs and the projects within each hub. Additional functionality is also supported for files (copy, delete, getting child references, etc.).
You can now use the API to define, query, and enable contact sets.
One other thing that’s not really part of the API itself but is something that quite a few people use is the Spur Gear sample script and add-in. I’ve updated it to fix an issue it had with units but have also added quite a bit of functionality. Below is a list of changes and enhancements that have been made.
- Supports English and Metric definition of gears.
- Units are either inches or millimeters depending on whether "English" or "Metric" is chosen as the standard. The default standard is chosen based on the default units for the document.
- All of the timeline items that were created as a result of building the gear are grouped into a single timeline node.
- Draws a sketch circle in the model that represents the pitch diameter.
- Models a fillet at the root of the tooth or no fillet if a radius of 0 is specified.
- Models a hole at the center of the gear or no hole if a diameter of 0 is specified.
- The dialog is initialized with the values used for the previous gear in the current design.
- Supports specifying a backlash value. This is useful for both precise gears to help reduce wear so the tooth isn’t in contact both on both sides. It’s also very important when creating gears using imprecise manufacturing methods. For example, because of how most parts are 3D printed that aren’t a perfect copy of the original model because of how the printing process works. This will allow you to provide some extra tolerance so that the gears can still function as needed.