如何使用Dynamo For Revit 創(chuàng)建一個(gè)鏤空?qǐng)A柱面姆泻?
效果如下:
右擊在新的標(biāo)簽頁(yè)打開(kāi)更加清楚。(已經(jīng)對(duì)節(jié)點(diǎn)進(jìn)行分組并加了注釋)
Python 節(jié)點(diǎn)中的代碼(求輸入的表面中面積最大的一個(gè)):
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