Does anyone know how to get the Revit.DB.Reference from a grid?
I’m using the NewDimension method which quires an array of geometric references to which the dimension is to be bound. But the grid does not seem to have any such geometric reference. According to this post, I need to include non visible geometry. But I’m not sure how that is done. Any thoughts?
The OOTB dimension node only works with line based elements (such as grids). I’m trying to create a string of dimensions to various elements - grids, stairs, walls, etc. For this I need the Revit.DB.Reference. I can get this for the other elements, but not grids. Any other thoughts?
Last time I checked, clockwork’s node filtered out only solids. You need to use similar code but get the curves of the grid instead. Once you’ve done that with geometry extraction options that had the compute references turned on, you’ll be able to pull out a valid reference for use in dimensions.
Hello! If I understood you correctly, now these referents for grids on the python:
for grid in grids:
____for obj in grid.get_Geometry(opt):
________if isinstance(obj, Line):
________gline = obj
________Ref.Append(gline.Reference)