Hello,
I can find x, y, z coordinate values of the element I selected in Revit model with element.getlocation node.
But I want to see the Revit element where I know the value of x, y, z.
Is it possible ?
Thanks
Hello,
I can find x, y, z coordinate values of the element I selected in Revit model with element.getlocation node.
But I want to see the Revit element where I know the value of x, y, z.
Is it possible ?
Thanks
You could compare the distance from this point to the element geometry for all selected elements, and get the one with the least distance (or ones with 0 distance). However it would be slow. If you want to work with items in a room it’s likely be faster to get the room at the point, then filter all elements to just ones in that room, then test distances on the smaller section. Similar filtering could occur by level, or other ‘known’ parameters as well.
If you are able to narrow down the types of elements you are dealing with, you could;
If you’re dealing with a lot of elements however, it will likely be a slow-ish approach.
Thank you so much @GavC
This method is very successful.
Glad it worked