简体   繁体   English

未打开项目的 Revit Python Shell

[英]Revit Python Shell without a project open

Trying to run the NewProjectDocument command from Revit API when no project is open but I am getting this error.尝试在没有项目打开时从 Revit API 运行 NewProjectDocument 命令,但出现此错误。 It seems to work fine when a project is open.当项目打开时,它似乎工作正常。 Any suggestions?有什么建议?

RPS Error RPS 错误

Could you please update your question with you code (rather than a link)?您能否用您的代码(而不是链接)更新您的问题? You can copy and paste straight from the console.您可以直接从控制台复制和粘贴。

In regards to you error, its line after # Define Revit Document关于你的错误,它在# Define Revit Document之后的行

Youre trying to tell RPS that doc is the currenly open Document, but not having a document open throws the error.您试图告诉 RPS doc是当前打开的文档,但没有打开文档会引发错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM