这个工具看起来很强大,可是只能在论坛里找到这个例子:
Extrusion is mainly for creating non-solid and use them as datum or pad/pocket. You can extrude vertex to edge, edge to face, face to shell, or face to solid if you want.
GenericPattern allows you to use an expression to control the pattern, including the number of patterns, and since you can call Python function in expression using my branch, you can practically do anything with it.
There is also the new TransformOffset property in every pattern feature, that allows you to specify an offset of the original feature before patterning. This effectively provides an easy way to move a solid and then merge it. The task panel for TransformOffset is hidden by default, because it may interfere with feature selection in the normal task. You can expand it manually, which will auto hide the normal task.

[
._app.Placement(._app.Vector(0),._app.Rotation()),
._app.Placement(._app.Vector(0;0;-1),._app.Rotation(18.0;0.0;0.0))
]

这个的用法目前只有上面这个“数组”,中括号中,以逗号为分割(分组),逗号后面有没有空格没关系,保存后,会自动加上空格。
逗号分组后,第一组数据就是第一个模型体的位置和旋转角度,位置因为是坐标系,所以要用Vector来表达,如果是0坐标,则省略了y和z,正常都是Vector(x;y;z),Rotation是分别绕xyz三轴的旋转角度。
如果阵列5个,则输入5组数据。

这个只是改变位置和旋转角度,如何随着阵列,改变每个模型的尺寸呢?

作者:秦晓川  创建时间:2025-09-08 21:37
最后编辑:秦晓川  更新时间:2025-09-09 08:41