简体   繁体   English

如何通过API或命令行在Fusion 360中创建形状?

[英]How can I create shapes in Fusion 360 via API or command line?

I am looking to utilize Autodesk Fusion 360 to generate a huge number of shapes (tens of thousands) in 3D model form, so I need a way to operate it non-interactively. 我希望利用Autodesk Fusion 360生成3D模型形式的大量形状(成千上万个),因此我需要一种非交互方式进行操作的方法。

I am aware of the Fusion 360 API documentation here https://autodeskfusion360.github.io/ 我在这里知道Fusion 360 API文档https://autodeskfusion360.github.io/

But I was wondering if there is a known way to do this. 但是我想知道是否有已知的方法可以做到这一点。

Essentially there are four main steps to create: 本质上,有四个主要创建步骤:

  1. Create base shape (ie sphere, cube, trapezoid etc..) and save 创建基本形状(即球体,立方体,梯形等)并保存
  2. Define and name each dimension on the shape as either dependent on another (ex: height/2) or an input (ex: height) until your model is fully constrained and controlled by parameters 定义并命名形状上的每个尺寸,使其依赖于另一个尺寸(例如:高度/ 2)或输入(例如:高度),直到模型完全受参数约束和控制
  3. Create a program (python is friendly) that inputs values to named inputs 创建一个将值输入到命名输入的程序(python友好)
  4. Connect to a database within the program (using odbc or similar) that will iterate through shape characteristics 连接到程序中的数据库(使用odbc或类似方法),将遍历形状特征
  5. Input necessary characteristics from database and save unique shape within your program 从数据库中输入必要的特征,并在程序中保存唯一的形状

You will have to be more specific in the question to clarify the answer. 您必须在问题中更具体地阐明答案。 Please include as detailed an example as you can and I'll edit my answer. 请尽可能详细地举例说明,我将编辑答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM