Hi All,
I'm trying to build a program that replaces the Paint command because I want to add a warning in the event that the painted element has certain properties. This needs to work both in the model and the family editor.
First, I'm using PickObject using a Face filter to mimick the Paint command which works fine, but sure would like to also exclude objects that are not paintable (both in the model and the family editor)
Reference faceRef = uidoc.Selection.PickObject(ObjectType.Face, new FaceFilter(uidoc.Document)
After that, the part I can't figure out, is how to acquire the element on which the face belongs. Again, this needs to work both in the family editor (where the element may be an extrusion or a sweep, etc.), or in the main model (where the element may be a wall or a floor, etc.)
Any advice would be much appreciated.
Regards,
James