Dynamo For Revit: 创建镂空圆柱面

如何使用Dynamo For Revit 创建一个镂空圆柱面?
效果如下:


20180228192550733.png

右击在新的标签页打开更加清楚。(已经对节点进行分组并加了注释)


20180228185745276.png

Python 节点中的代码(求输入的表面中面积最大的一个):

import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
surfaces = IN[0]

index = 0;
maxArea = 0.0;
maxIndex = 0;
for surface in surfaces:
    if surface.Area > maxArea:
        maxArea = surface.Area
        maxIndex = index
    index = index + 1
        
#Assign your output to the OUT variable.
OUT = maxIndex
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容