Trying to run the NewProjectDocument command from Revit API when no project is open but I am getting this error. It seems to work fine when a project is open. Any suggestions?
Asked
Active
Viewed 118 times
1
-
Please provide enough code so others can better understand or reproduce the problem. – Community Oct 12 '21 at 06:58
1 Answers
0
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
Youre trying to tell RPS that doc
is the currenly open Document, but not having a document open throws the error.

Callum
- 578
- 3
- 8