How to get curtain wall grid horizontal and vertical grid count?

Hello
Both x and y grid is called “Number” in curtain wall parameters. How to get them knowing which is which?

edit: also I have counted manually and the grid number is +1 compared to the display value. Why is that?
I’m working with fixed with panels.

you can do it with a simple python piece:

import clr
#The inputs to this node will be stored as a list in the IN variables.
walls = UnwrapElement(IN[0])
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *

output = []
    
for w in walls: 
  output.append([w.CurtainGrid.NumULines,w.CurtainGrid.NumVLines])

#Assign your output to the OUT variable.
OUT = output

I assume that the input is a list of curtain walls. It gives you a number of internal grid lines.

obraz

4 Likes