1. Home
  2. /
  3. Fusion360-scripting
  4. /
  5. Create Circular Pattern

Create Circular Pattern - Fusion360-scripting Typing CST Test

Loading…

Create Circular Pattern — Fusion360-scripting Code

Creates a circular pattern of a feature around an axis.

axis = rootComp.zConstructionAxis
features = rootComp.features
feat = features.item(0)
patternFeats = rootComp.features.circularPatternFeatures
patternInput = patternFeats.createInput(adsk.core.ObjectCollection.create([feat]), axis, 6, adsk.core.ValueInput.createByString('360 deg'))
patternFeats.add(patternInput)

Fusion360-scripting Language Guide

Fusion 360 Scripting allows users to automate design tasks, create custom tools, and extend functionality within Autodesk Fusion 360 using Python or JavaScript (TypeScript) APIs, enabling parametric modeling, simulation, and manufacturing workflow automation.

Primary Use Cases

  • ▸Automating repetitive modeling tasks
  • ▸Custom parametric design generation
  • ▸Batch exporting or processing designs
  • ▸Automating CAM toolpath generation
  • ▸Creating custom UI commands and add-ins

Notable Features

  • ▸Python and JavaScript/TypeScript support
  • ▸Access to Fusion 360 design and CAM API
  • ▸Create add-ins, scripts, and custom commands
  • ▸Automate sketching, modeling, and assemblies
  • ▸Integrate with external data and files

Origin & Creator

Developed by Autodesk Inc., USA, as part of the Fusion 360 cloud-based CAD/CAM/CAE platform.

Industrial Note

Used extensively in product design, mechanical engineering, CNC manufacturing, generative design, and workflow automation where repetitive modeling, simulation, or CAM operations need scripting.

Quick Explain

  • ▸Fusion 360 Scripting provides programmatic access to the Fusion 360 API for automating repetitive design and manufacturing tasks.
  • ▸Supports creating custom add-ins, scripts, and commands for modeling, assemblies, and CAM operations.
  • ▸Offers direct access to design objects, components, sketches, bodies, and parameters.
  • ▸Often used with Python (via Fusion 360 API) or JavaScript/TypeScript for web-based Fusion add-ins.
  • ▸Widely used by engineers, designers, and manufacturers for enhancing CAD/CAM productivity.

Core Features

  • ▸Manipulate components, bodies, and sketches
  • ▸Access and modify parameters
  • ▸Automate CAM toolpaths and simulation
  • ▸Event handling and command definitions
  • ▸Error handling, logging, and debugging support

Learning Path

  • ▸Learn Fusion 360 basics (Modeling, Assemblies, CAM)
  • ▸Understand Python or JavaScript basics
  • ▸Explore Fusion 360 API documentation
  • ▸Create simple scripts for modeling
  • ▸Develop Add-ins for advanced workflows

Practical Examples

  • ▸Batch generate design variations with parameters
  • ▸Automatically create sketches and extrusions
  • ▸Generate assembly constraints programmatically
  • ▸Export multiple design files automatically
  • ▸Automate CAM setup and toolpath creation

Comparisons

  • ▸Fusion 360 Scripts vs AutoLISP: Fusion uses Python/JS for modern parametric modeling; AutoLISP is CAD-specific and legacy
  • ▸Fusion 360 Scripts vs .NET API: Python easier for quick scripts; .NET more robust for advanced Add-ins
  • ▸Fusion 360 Scripts vs Dynamo: Dynamo is visual; scripting allows text-based parametric control
  • ▸Fusion 360 Scripts vs API Automation Tools: Scripts offer deep object access; external tools may be limited
  • ▸Fusion 360 Scripts vs Manual Modeling: Automates repetitive tasks and batch operations, saving time

Strengths

  • ▸Rapid automation of repetitive CAD/CAM tasks
  • ▸Highly flexible with Python scripting
  • ▸Direct access to Fusion 360 API objects
  • ▸Supports parametric design automation
  • ▸Integrates seamlessly with Fusion 360 workflows

Limitations

  • ▸Only works within Fusion 360 environment
  • ▸Python API may have limitations compared to full desktop APIs
  • ▸Performance can be slower for extremely large assemblies
  • ▸UI customization is limited to Fusion 360 add-in framework
  • ▸Requires knowledge of Fusion 360 object model and API

When NOT to Use

  • ▸When Fusion 360 is unavailable
  • ▸For simple manual modeling tasks
  • ▸If scripting skills are lacking and no learning time is available
  • ▸When real-time performance is critical for simulation
  • ▸For non-Autodesk CAD platforms

Cheat Sheet

  • ▸app = adsk.core.Application.get() -> Get Fusion 360 app
  • ▸design = app.activeProduct -> Access current design
  • ▸component.bRepBodies -> Access bodies in component
  • ▸param = design.userParameters.add(...) -> Create parameter
  • ▸cmdDef = ui.commandDefinitions.addButtonDefinition(...) -> Create command

FAQ

  • ▸Can Fusion 360 scripts run outside Fusion? -> No, Fusion 360 must be running.
  • ▸Do I need programming knowledge? -> Yes, basic Python or JavaScript skills help.
  • ▸Can scripts modify assemblies? -> Yes, via API objects.
  • ▸Are Add-ins different from scripts? -> Add-ins are persistent and can add UI commands.
  • ▸Is Fusion 360 scripting supported in cloud? -> Yes, scripts can access cloud project data.

30-Day Skill Plan

  • ▸Week 1: Python/JS fundamentals and simple scripts
  • ▸Week 2: Manipulating sketches and bodies
  • ▸Week 3: Automate parametric features
  • ▸Week 4: Assembly operations and constraints
  • ▸Week 5: CAM automation and Add-in development

Final Summary

  • ▸Fusion 360 Scripting automates modeling, assembly, and CAM workflows using Python or JavaScript.
  • ▸Enables parametric design generation, batch operations, and custom Add-ins.
  • ▸Provides access to Fusion 360 API for objects, parameters, and simulation.
  • ▸Ideal for engineers, designers, and manufacturers automating repetitive tasks.
  • ▸Combines scripting flexibility with Fusion 360’s parametric and CAM capabilities.

Project Structure

  • ▸Python script (.py) or JavaScript file
  • ▸Add-in folder structure with manifest
  • ▸Supporting libraries
  • ▸Configuration files or constants
  • ▸Documentation and usage guide

Monetization

  • ▸Custom Fusion 360 Add-in development
  • ▸Workflow automation consulting
  • ▸Parametric design toolkits
  • ▸CAM automation services
  • ▸Integration of CAD/CAM data pipelines

Productivity Tips

  • ▸Start with small scripts before full Add-ins
  • ▸Use console logging for debugging
  • ▸Modularize code for reuse
  • ▸Test on sample projects first
  • ▸Combine scripting with cloud project automation

Basic Concepts

  • ▸Scripts vs Add-ins - Scripts for quick automation, Add-ins for persistent tools
  • ▸Design objects - components, bodies, sketches, features
  • ▸Parameters - control dimensions and constraints programmatically
  • ▸Event handling - react to design or UI changes
  • ▸API navigation - using Python objects to traverse and modify models

Official Docs

  • ▸https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-API
  • ▸https://www.autodesk.com/developer-network/platform-technologies/fusion-360-api

More Fusion360-scripting Typing Exercises

Create New Document (Fusion 360)Create a Sketch on XY PlaneDraw a Line in SketchDraw a Circle in SketchExtrude Sketch ProfileCreate a Rectangle SketchApply Fillet to EdgeMove BodySave Design Document

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher