This is nice because pulling all of the elements in a view without a category filter can be very time consuming - depending on how much stuff is actually visible. But what if there was still a lot of elements in a specific category? Wouldn’t it be nice if you could just get the elements for a specific family type in a view? This would save a lot of processing time if you were trying to do this across several views simultaneously. Can it be done - maybe with a Python Script?
Hi Daniel,
I am not at my computer at the moment so I can’t try this out right now, will do tomorrow.
But I think you could get all elements of family type in the active project, and use the element owner view (clockwork)node to find what views the elements are in.
Next step would be to match these views versus the active view and filter the first list(your elements) with a simple bool mask.
I guess this should work? If you can’t get it to work I will check it tomorrow
Thanks @Garbage_Collector. Right now I use filtering to get all elements of a specific family type after using the node that gets All Elements of Category in View. This method is best one i know of so far that takes the least processing time.
However, I am usually trying to get these elements from multiple views - which means that dynamo is still processing all of the elements of an entire category for those views as well. So instead of getting, say 8 elements per view, dynamo is processing around 100 per view.
You have to wait quite the while for a list of thousands of elements! So the issue isn’t whether I can get a list, but the time it takes to do it.
I suppose that until the Lords of Dynamo deem it worthy to give us lowly plebleians this sort of node (or more likely realize the need or have the time😅) it will probably require a python script to accomplish.
This way, you only get the specific family type and not the whole category.
The Document.Active view is from Spring nodes, All Elements of Family type + and Element ownerview are from clockwork
Wow. A node that pulls across specific views for a category, element type or family type. I guess that is starting to sound long. SelectByItemAndView? Or maybe SelectByAnythingAndView - that might get too encompassing though.
Since many may be inclined to use ootb for categories, SelectByTypeandView could be an option too.
I thought I’d give this a shot. It looks like the Element.OwnerView node from Clockwork is limited to specific elements even if they are visible in views. It gets nulls for every item on the list.
Ah, yes that node only works for annotation if i am correct, not for 3d element is i am correct…
I am not sure what kind of family you are trying to filter