Curtainwall outline curve


I’m fiddling with curtain walls, the curves atm. which I want to dimension in the end.
To my knowledge curtain walls are actually

  • a collection of grids,
  • the grids have mullions assigned

So if I want to obtain the geometric references of the curtain wall (the outline):

  • get the bounding box of a curtain wall since the curtain wall itself has no geometry
  • neglect the y-value
  • min, max point will allow me to define the outline ???

Python/api gives me boundingbox too as only option?

Curtain walls have a location line and a height as well. Might be better to work with those and extrude the location line by the height.

Don’t think that will work, I need to get a list of ReferenceArrays in order to place some dimensions in the end.

NewLinearDimension Method (View, Line, ReferenceArray, DimensionType)

Does anyone have a clue how to get a list of ReferenceArray’s??

pfff how annoying. I can’t figure it out.

How do I get to the reference of a curtain wall?

import clr
from Autodesk.DesignScript.Geometry import *

import Revit

from Revit.Elements import *

from Autodesk.Revit.DB import *

import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

#gc = UnwrapElement(IN[0]).GeometryCurve

c = UnwrapElement(IN[0])
for l in cw:	
	t = l.CurtainGrid.NumULines	
	u = l.get_Geometry
	#h = l.get_Geometry.Faces	
	#g = l.CurtainGrid.NumVLines
OUT = t,u

u outputs Ironpython.Runtime.Types.BuiltinFunction … which is good I guess? Is that how the references are retrieved?