I’ve been lurking for a while here on the forums, always very useful stuff.
At the moment I am trying to create an automated legend that shows only the pipe and duct system types that are actually visible in the corresponding view.
Using All Elements in View(s) I can retrieve the visible systems, but I fail to translate that into a legend.
My first thought was to have an existing legend with all available systems (a line with the system color defined in its line style and a text with the system name), duplicate it, and then use category overrides to hide the lines. The texts though, they’d still be there and there’d be free spaces in my legend. I couldn’t get anything to work here, legend views are treated differently, can’t find a way to hide the different line styles.
The second approach was to use detail groups of the different systems consisting of the line, text and maybe a frame around them. I would then have them placed one after the other by the script if the system was visible in the view. Unfortunately I couldn’t find out how to place these detail groups in a legend or in a drafting view.
Has anyone pulled this off yet? Maybe some hints would help me get into the right direction