Does anyone have any insight into moving wall attached elements using the API? I can see how it should be possible to slide elements along a planar wall face by getting the locations of two points projected on to the face, but can't figure out how to be sure which face is the host face from the wall element.
Any help is appreciated.
Solved! Go to Solution.
Solved by Revitalizer. Go to Solution.
I think my question wasn't specific enough. I am looking for a way to slide wall attached elements along a wall, and currently my thought is to get two points on the wall face and use those to slide the element parallel to the wall, but I am not sure that is the best way to do it. Also, I am stuck at the step where I need to find the face of the wall that the element is attached to.
I can get the wall geometry and check for the face that includes a point with PlanarFace.IsInside, but that is looking for a UV point, where all of my object points are XYZ and I'm not finding a way to convert between them. Because of this, I can't find the face of the wall that hosts my object.
If anyone knows how to:
a. Move a wall attached object along it's host wall/face
b. Find the face of an object that is hosting a wall attached element
Please let me know!
Hi leslief,
you need FamilyInstance.HostFace.
See more here:
http://thebuildingcoder.typepad.com/blog/2012/10/beam-bottom-endpoint.html
Hope this helps.
Best regards,
Revitalizer
I ended up solving the issue in a different way & did a write-up on it. Hopefully someone else can benefit:
http://revitology.wordpress.com/2013/02/13/on-moving-wall-hosted-objects/