MIT License

项目介绍

bluekeyes/Fusion360-ExportCutlist 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 129 个 Star、18 次 Fork。

仓库全名
bluekeyes/Fusion360-ExportCutlist
开源许可证
MIT License
Star 数
129
Fork 数
18
未关闭 Issue
2

README 摘要

Fusion360 Export Cutlist An Autodesk Fusion 360 addin that can export a cut list of parts in a variety of formats. Useful for woodworking or other crafts that mostly cut shapes out of rectangular stock. It's compatible with many modeling styles and does not require a specific document structure or workflow. Features Operates on bodies, selected either directly or by selecting components Groups parts by matching…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Fusion360-ExportCutlist 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 129 个 Star。

Fusion360-ExportCutlist 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Fusion360-ExportCutlist 的源码?

可以直接克隆仓库:git clone https://github.com/bluekeyes/Fusion360-ExportCutlist.git;安装与运行步骤见仓库 README。

Fusion360-ExportCutlist 最近还在维护吗?

仓库最近一次更新为 3月2日,当前有 2 个未关闭 Issue;Star 数为 129,可作为社区活跃度的参考。

关于

Addin for Autodesk Fusion to export cut lists of parts in various formats

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
294
价值分
95
活跃状态
活跃

README

Fusion360 Export Cutlist

An Autodesk Fusion 360 addin that can export a cut list of parts in a variety of formats. Useful for woodworking or other crafts that mostly cut shapes out of rectangular stock.

It’s compatible with many modeling styles and does not require a specific document structure or workflow.

Features

  • Operates on bodies, selected either directly or by selecting components
  • Groups parts by matching bounding box dimensions and materials
    • The largest dimension is called length, the next largest width, and the smallest height
    • Accounts for part rotation when matching bounding boxes
    • Customize grouping conditions
  • Exports to text, HTML, JSON, CSV, and more
  • Additional filtering options for bodies (e.g. visibility)

Installation

  1. Download the latest release
  2. Unzip the file on your computer
  3. Start Fusion and open the “Scripts & Addins” dialog (Shift+S)
  4. Click the “+” (plus) sign and select “Script or add-in from device”
  5. Selected the extracted folder from Step 2
  6. Click the “Run” toggle (or restart Fusion) to start the add-in

The wiki also has a detailed version of these steps with annotated screenshots.

Usage

The “Export Cutlist” command is added to the “Make” panel in the “Utilities” tab:

The Export Cutlist command in the Make panel

After selecting the command, a dialog appears where you can select components and bodies and set other options:

The Export Cutlist option dialog

Hover over any of the options to see a tooltip explaining what it does.

When you are ready to export, click “OK”. A file selection dialog will open asking where to save the file. Choose a file and click “Save”. A message box will open confirming the file was saved.

Formats

The addon can export cutlists in the following formats:

Example Output

The cutlist for a simple box with a bottom was exported as a table, JSON, and CSV to demonstrate the different formats.

Fusion 360 screenshot showing a simple four-sided box with a bottom

Table

count      material       length (in)   width (in)   height (in)   names 
=========================================================================
    2   Pine                     6.00         2.00          0.50   Left  
                                                                   Right 
-------------------------------------------------------------------------
    2   Pine                     4.00         2.00          0.50   Back  
                                                                   Front 
-------------------------------------------------------------------------
    1   Plywood, Finish          6.00         3.50          0.25   Bottom

JSON

[
  {
    "count": 2,
    "dimensions": {
      "units": "in",
      "length": "6.00",
      "width": "2.00",
      "height": "0.50"
    },
    "material": "Pine",
    "names": [
      "Left",
      "Right"
    ]
  },
  {
    "count": 2,
    "dimensions": {
      "units": "in",
      "length": "4.00",
      "width": "2.00",
      "height": "0.50"
    },
    "material": "Pine",
    "names": [
      "Back",
      "Front"
    ]
  },
  {
    "count": 1,
    "dimensions": {
      "units": "in",
      "length": "6.00",
      "width": "3.50",
      "height": "0.25"
    },
    "material": "Plywood, Finish",
    "names": [
      "Bottom"
    ]
  }
]

CSV

count,material,length (in),width (in),height (in),names
2,Pine,6.00,2.00,0.50,"Left,Right"
2,Pine,4.00,2.00,0.50,"Back,Front"
1,"Plywood, Finish",6.00,3.50,0.25,Bottom

Matching Rotation

The addon uses the folowing algorithm to detect rotated parts:

  1. Find the planar face with the largest perimeter
  2. Find the orientation vector of the longest edge of the face
  3. Rotate the body so that the normal vector of the face is aligned with the Z axis and the orientation vector of the longest edge is aligned with the X axis
  4. Return the axis-aligned bounding box of the rotated body

This should produce correct results for most common situations in woodworking, where almost all parts will have at least one flat face that is aligned with one of the stock faces.

Bodies that don’t work with this algorithm (e.g. because they have no planar faces) use the axis-aligned bounding box computed by Fusion 360. You can also disable the rotation heuristic and always use axis-aligned boxes in the advanced options.

License

MIT

Contributing

Pull requests or issues suggesting additional features or output formats are welcome. If reporting a bug, please attach or a link to a design that reproduces the issue.

评论

暂无评论