企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
![](https://img.kancloud.cn/11/4e/114e617e8d0e3b3cbccec5b8b12f3c4f_1129x749.gif) 可以考虑使用一个py脚本,ArryaBetween [https://share.weiyun.com/0GdktM1A](https://share.weiyun.com/0GdktM1A) 这个脚本也可以直接放置在命令当中直接使用 ![](https://img.kancloud.cn/34/a7/34a75f30f3fc11e741191de5da30ba96_975x682.png) `-_EditPythonScript Debugging=Off (` `#coding=utf-8 ` `import rhinoscriptsyntax as rs` `def array_between():` obj = rs.GetObject('Select object to array', 0, True) if not obj: return rs.SelectObject(obj) amount = rs.GetInteger('How many objects in array') if not amount: return point1 = rs.GetPoint('Pick start point') if not point1: return point2 = rs.GetPoint('Pick end point') if not point2: return vector = rs.VectorCreate(point2, point1) copyvec = rs.VectorDivide(vector, amount - 1) for i in range(1, amount): copy = rs.CopyObject(obj, copyvec * i) rs.UnselectObject(obj) array_between() )