14
社区成员




如何在dynamo python 裡去啟動*.dyn
https://wenku.csdn.net/answer/6mbvr026rt?ydreferer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8%3D
我在上面鏈結程式碼,在revit 2023,dynamo python中測試,有錯誤訊息,我不會修正,不知有哪位高手可指正一下,萬分感謝
不知有哪位高手可指正一下,萬分感謝
import clr
clr.AddReference('DynamoCore')
from DynamoCore.DynamoApplication import DynamoApplication
dynamo = DynamoApplication()
with open("path_to_your_script.dyn", "r") as script_file:
script_content = script_file.read()
dynamo.Execute(script_content)
if dynamo.IsStartupCompleted:
dynamo.Stop()