Does anyone have a python script that will allow you to create sheets or better yet place holder sheets from a list of “sheet numbers” and “sheet names” ? and Titleblock if Sheets…both current builds only allow for you to create sheets with views packed on them. which is incredible. but i only want placeholder sheets!
There is similar built in functionality with the view sheet node. I used a similar workaround with creating drafting views, what i want to do is NOT have extra drafting views in my project if they are just “placeholder sheets”. This is something i’m looking to tackle in the future because i am new to python scripting and want to learn, but i had an immediate need for it.
Someone over at RevitForum uploaded an Add-In that I think should do what you’re looking for. It’s a little old by now so no promises it still works but it should, at least, point you in the right direction.
Very useful, but not as powerful as having it as a node in Dynamo. What i want to do is have the ability to grab the elements to set other sorting parameters/information after its created.
Looking a bit at the API help file, it appears the code to create sheets is really simple. the picture shows how it works, number input is the amount of sheets to create.
I managed to make the python one work but not the other one that seems more intuitive for a non coder like me
the code was not properly pasted in WP, lacking indents
# Default imports
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitAPIUI')
from Autodesk.Revit.DB import *
import Autodesk
import sys
import clr
path = r'C:\Autodesk\Dynamo\Core'
exec_path = r'C:\Autodesk\Dynamo\Core\dll'
sys.path.append(path)
sys.path.append(exec_path)
clr.AddReference('LibGNet')
from Autodesk.LibG import *
#The input to this node will be stored in the IN0…INX variable(s).
doc = IN0
IDs = IN1
for item in IDs:
x = ViewSheet.Create(doc,item)
#Assign your output to the OUT variable
OUT = x
as you can see I make progress on the sheet creation
what i am trying to achieve is to create sheets with all my plans and views one after the other with the titleblock
I can do the view list but I have no clue on how to pick each view instance one after the other and feed it to the sheet view creator. The first one works…
There is no way to set custom sheet numbers or sheet names. It also doesn’t output a list of sheet elements to the apply more functions to…Thanks for this great script, but i like all the functionality of the OOTB Node without adding views to the sheets!
Is there a way to add inputs for a list of Sheet Names and Sheet Numbers? or at least get the output to be a list of created sheets, to which i can modify after? what im actually doing is running the script from an imported excel file, since i want my consultants to take the responsibility for their drawing list!
I used this node in conjunction with some Excel Data import functionality and i was able to build placeholder sheets for almost 200 consultants sheets at once, along with setting some sorting values afterwards!! *****