Here is what I have. I am not sure how to place the arguments for Application.NewProjectDocument() method. It is asking for 2 arguments.
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.ApplicationServices import *
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import * #The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
I am having this same issue. The API documentation says the method might take a String for the name of a Template file. Try adding the argument “Construction Template” or something?
When I run the code, I get the message that Imperial is not defined. How did you define the variable “Imperial”?
i need to start a project from a template as well, used your code but nothing seems to happen…
Something happens at the background, but no document is opened