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: 

Face based on roof

1 REPLY 1
Reply
Message 1 of 2
sanjaymann
355 Views, 1 Reply

Face based on roof

Hi 

 

Can any one guide me in placing a face based family on a roof. A small example code would help in right direction.

 

Thanks & Regards

1 REPLY 1
Message 2 of 2
anagnam
in reply to: sanjaymann

Hi,

I think if you use the pickObject to pick a face then you can use that as the basis for placing your family.

 

Reference r = uidoc.Selection.PickObject(ObjectType.Face, "Pick a face");

Or if you dont want to pick the face, you can use the filteredElementCollector to filter the specific face using its id as your base.

 

FilteredElementCollector faceCollector = new FilteredElementCollector(doc).OfClass(typeof(Face));

Im still a newbie but hope that helps 😉

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community