Giter Club home page Giter Club logo

fusion360exporter's Introduction

This is a Fusion 360 Script to bulk export your files. Currently will export f3d files to f3d, igs, stp, smt, sat and stl. Can export drawings to dxf.

Installation

  1. Download this repo and unzip it somewhere.
  2. In Fusion, goto TOOLS > ADD-INS > Scripts and Add-Ins (or just hit Shift+S)
  3. Next to "My Scripts", hit the green plus icon
  4. Select the folder where you unzipped it
  5. "Exporter" should now appear under "My Scripts"

Usage

  1. Goto Scripts and Add-Ins
  2. Select Exporter from "My Scripts"
  3. Hit Run. It will take a second to display the options panel as it is fetching your list of projects.
  4. After selecting your options and hitting okay, your computer will be unusable. The script will be potentially opening and exporting a lot of documents and each time it opens one, Fusion likes to make itself the active window which means you can't just have this run in the background.

Options

  1. Directory: This defaults to a folder called Fusion360Exports on your desktop
  2. File types: Select the export file types you want for each file
  3. Projects: Select the projects you want to work on
  4. Unhide All: When checked, it will unhide all components and all bodies (recursively) so that the exported files contain all bodies
  5. Export Sketches as DXF: Each sketch will get exported as dxf

Operation

For each document in each selected project, it will ensure that there is a file named <export directory>/<project name>/<document name>_<version name>.<file extension>. If that file does not exist, it will open the document and do an export of it, then close it. If there are multiple formats to export, it will only open the document once.

For sketches, it will create a folder hiearchy like <export directory>/<project name>/<component names ...>/<sketch name>.dxf.

Since document names might have invalid filename characters, we attempt to replace them with spaces. In order to avoid a false collision, if any chars are replaced, the document name will have 8 hexchars of sha256 hash of the original utf-8 encoded document name. Eg model 1/2 \ * ? <morechars> || would be saved as model 1 2 morechars _29a6fecc_v1.f3d

In some ways this is an export and in others, it is more of a sync, since it won't re-export files that already exist and it skips opening documents it doesn't need to.

It will create a log file at <export_directory>/<timestamp>.txt that should have some more info if things go wrong.

Limitations + Known Issues

  1. Not sure what other file types are out there (simulation data maybe? etc) but it only handles .f3d documents
  2. Only visible bodies are included in exports to all file formats except f3d. Use the "Unhide All" option to unhide them before exporting
  3. Image renders might cause an error. See #4
  4. Cloud solves might cause an error. See #3

TODO (Maybe)

  1. Saving electronics documents? these are fbrd files

fusion360exporter's People

Contributors

aconz2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.