Dynamo For Revit: 創(chuàng)建鏤空圓柱面

如何使用Dynamo For Revit 創(chuàng)建一個鏤空圓柱面?
效果如下:


20180228192550733.png

右擊在新的標(biāo)簽頁打開更加清楚。(已經(jīng)對節(jié)點進(jìn)行分組并加了注釋)


20180228185745276.png

Python 節(jié)點中的代碼(求輸入的表面中面積最大的一個):

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
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容