Filter directshape generic models

Hi,

I imported a site and context model from Forma. The context buildings are imported as Directshape Generic models.

Some of these have been deleted and re-modeled as in-place generic models.

I need to select all of the remaining Directshape generic models. My objective is to move them to the ground plane of the model. I am trying to select only the elements that are buildings so I’m not sure if this selection needs to be further filtered or if the desired filters already accomplish this.

I would assume that moving these elements involves deleting them and recreating them at the correct location. I would appreciate any input on this strategy. However, I haven’t been able to set up the correct filter definition. This is the main issue I am trying to solve. I was not able to put the pieces together based on what I found online, but it seems to be not that complicated.

Some of the elements have phase parameters but it isn’t such a big deal to preserve these, I can manually reset the elements to be demolished upon recreating them.

Thanks for any help with this!

model group internalized.gh (8.0 KB)

Hi CT,

I recategorized your post to Rhino.Inside.Revit

Its not clear what you are asking for. Can you provide a small sample file and details ? Thanks

Here is a one liner that returns True or False if the Element is a DirectShape

R8-RiR-DirectShapeTest.gh (7.2 KB)

you could also do a class filter

Thank you, I combined this second method with this to target the desired elements: