I currently have two scripts that I use in my workflow. One of them matches the view scale to our viewport scale family, and the other one filters out drafting views with a dummy parameter. I’m wondering if there’s a way to combine these two scripts with a single node for a more efficient workflow. Do you have any suggestions on how to achieve this?
The only duplicate portion seems to be the list of viewports. Just use one set of Categories
+ All Elements of Category
to remove the redundancy, but even that isn’t anything I’d be worried about.
However, to simplify the two processes you could filter out the VIEW SCALE 1 viewports first and then continue with the list of remaining viewports for assigning scale.
I was actually aiming for the second option, but I haven’t been able to find the appropriate node to accomplish this. Do you have any suggestions on which node I can use to combine these two scripts?
You’re filtering the parameter value and not the element. You’ll need to get rid of Clear List
(so you don’t have a pre-filtered selection) and feed the elements to the filter.