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

你可能感兴趣的:(Dynamo For Revit: 创建镂空圆柱面)