forge - devcon 2016: 10 great fusion 360 sample applications
TRANSCRIPT
Brian Ekins and Patrick Rainsberry
10 Great Fusion 360 Apps
Fusion 360 Client API Philosophy
• Single API
• Exposed through multiple languages
• Provide support for basic scripting
• Provide support for complex commands
• Supported on both Windows and Mac
Stool Designhttps://github.com/brianekins/StoolDesign
Stool Design
Provides commands for designing stool top and generates g-code to cut the design.
Features:• Commands with dynamic preview
• Draws randomly created sketches
• Generates g-Code from sketches
• Submits g-Code using FabMo
Creating g-Code for Lines
Iterate through sketch lines
Determine if current line connects to the next line
Cut to next point
Retract and move to next set of lines and begin cutting again
Retract
Creating g-Code for Curves
Convert curve to points.
Write path for points.
Retract
Submitting g-Code
Uses FabMo component to find tool and submit the job.
Dado and Rabbet Jointshttps://github.com/brianekins/Dado-Rabbet
Dado and Rabbet Joints
Custom feature creation
Features:• Get input from the user
• Controlled selections
• Create a constrained sketch
• Create an extrusion
• Group in timeline
Cork all Holeshttps://github.com/brianekins/FusionHackathonSamples
Cork All Holes
Finds all holes and corks them.
Features:• Find all “holes” using B-Rep
(topology and geometry).
• Create a cork component for each size hole found.
• Inserts a cork and connect itusing a joint.
Find all “Holes”
• Find circular edges that are the intersection of a cylinder and plane.
• Edge is part of an inner loop.
• Normals of face point towards the cylinder axis.
Mesh Intersecthttps://github.com/brianekins/MeshIntersect
Mesh Intersect
Creates a sketch that represents the intersection of a mesh body.
Features:• Control plane selection in various ways
• Simplified preview
• Gets triangle mesh from Fusion
• Uses its own math for calculating intersections
• Creates sketch and intersection lines
Custom Matrix and Vector Math
• Custom math classes to avoid the overhead of API calls.
Butter Melt and Fly Throughhttps://github.com/brianekins/FlyThroughhttp://blogs.autodesk.com/modthemachine
Butter Melt
Modifies a series of parameters and captures the screen.
Features:• Parameter edit
• Screen Capture
Fly Through
Repositions the camera based on curves.
Features:• Curve query
• Camera edit
• Remembers settings