|
本帖最后由 筑梦NARUTO 于 2015-9-12 09:07 编辑
不知道为啥插入代码那个不好用了。自己根据代码和图片改下应该就可以了(貌似又可以插入了)
[mw_shl_code=applescript,true]#coding=utf-8
import rhinoscriptsyntax as rs
cv = rs.GetObjects("选择要挤出的曲线",rs.filter.curve)
num = rs.GetReal("请输入挤出的距离")
if cv and num:
for i in cv:
rs.Command(" -_ExtrudeCrv " + " SelID " + str(i) + " _Enter" +" %f " %num+ "_Enter " )[/mw_shl_code] |
|