I am trying to create a script for creating a legend for windows/doors (and any other categories in general) and am stuck on the moment of setting dimensions. As I understand it, there is no “Dimension.ByReference” node in Revit 21. Are there any other ways to solve my problem? Right now, I’m doing it by constructing lines along the edges of the element, but I don’t like it at all.
Hello @WRabe and welcome to the forum, try look into genius loci package and should work in 21 as well, there you have some nice nodes for reference, but if i remember when in legend view its best get the surface reference and it can help with that as well…try show us what you have tried in dynamo, and if you take a search here in the forum you could find some example as well…Welcome ![]()
Oh, yes, I’ve already noticed something in related topics that might help me. I don’t know why I didn’t find it before, but thanks for the idea anyway.
And now i have some troubles again
I cant get reference from surface
My way: element →Element.Geometry→Geometry.Explode→a lot of sorting →Surface →?
Yes try set surface ref to l2, and yes it need some sorting for find the right surfaces
Try only feed in surfaces,seems you feed in solid and lines as well
GeniusLoci Surface Reference doesn’t work with dynamo surface (exploded geometry). Only with revit surface from Element.Geometry ![]()
Yes dyn surfaces dont have ref
So select element and element faces node and sort from there
Yes, I’ve already tried this way, but for some reason it doesn’t work for all families.
allright …as mention try select elements and use element faces node as have reference from surface and sort…
I’ve already tried it, but I don’t understand why it doesn’t work.
Everything works fine with standard windows, but it doesn’t work with any others.
hard to say, im not at dyn, but you could try share share that family, and we can take a look, but i can first in the new year
but seems you have some nulls, try very simple first with ootb select face get the reference from there and then we know if it works or not and then scale it up:)…happy new year ![]()
Yes, ootb works as it should, but we (and no one else) don’t use it.
I attach the files of the window family and the dynamo script (although I do not recommend even opening it, as it is currently a complete mess).
Thank you for your help and happy new year too
AL_Window.rfa (1.6 MB)
create a legend.dyn (171.2 KB)










