Adding Fields to Clockwork PlaceholderSheet.ByNameAndNumber Node


#1

In our office we use a couple of extra fields to sort and group our sheet lists. I want to add a couple of fields to the Clockwork Placeholder node. I am able to get the input to the node but I am not sure what to do in the Python to process the information.

 

 

 

 

 

 

 

import clr
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import *

clr.AddReference(“RevitNodes”)
import Revit
clr.ImportExtensions(Revit.Elements)

clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
sheetnums = IN[0]
sheetnames = IN[1]
sheetsers = IN[2]
elementlist = list()
counter = 0

TransactionManager.Instance.EnsureInTransaction(doc)
for num in sheetnums:
newsheet = ViewSheet.CreatePlaceholder(doc)
newsheet.SheetNumber = str(num)
newsheet.Name = sheetnames[counter]
elementlist.append(newsheet.ToDSType(False))
counter += 1
TransactionManager.Instance.TransactionTaskDone()
OUT = elementlist