Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get Decal Host Element?

1 REPLY 1
Reply
Message 1 of 2
Anonymous
368 Views, 1 Reply

Get Decal Host Element?

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!

Labels (1)
1 REPLY 1
Message 2 of 2
naveen.kumar.t
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community