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](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/0/d0d936cd54808977800a5549ec797ea18592017a.png)
4 Likes