Get Decal Host Element?

Get Decal Host Element?

Anonymous
Not applicable
562 Views
1 Reply
Message 1 of 2

Get Decal Host Element?

Anonymous
Not applicable

Hi, I'm having a problem:

I have only access to a decal element, but I'd like to know which element's surface it is on. I've tried to find a property with RevitLookup without any success. Is there a way to achieve this?

Thanks!

0 Likes
563 Views
1 Reply
Reply (1)
Message 2 of 2

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous ,

To find Host element

Element e;
FamilyInstance familyInstance = e as FamilyInstance;
Element hostElement = familyInstance.Host;

Is this what you are looking for? 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes