Re-Host a Face Based FamilyInstance

Re-Host a Face Based FamilyInstance

s_dineshkumarDEDFU
Explorer Explorer
1,100 Views
2 Replies
Message 1 of 3

Re-Host a Face Based FamilyInstance

s_dineshkumarDEDFU
Explorer
Explorer

I have a Face Hosted family instance, if i delete the Host parent Element, the face based family instance got <not associated>, am trying to rehost to new host element face reference, is there any api to do that in revit, and i am

using to create face family instance by

doc.Create.NewFamilyInstance(refPlanarFace, origin, handDirection, famSymb)

 

s_dineshkumarDEDFU_0-1713967732842.png

 

s_dineshkumarDEDFU_1-1713967765314.png

 

 

 

0 Likes
1,101 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

Afaik, the family instance HostFace property is read-only, and there are probably good reasons for that:

  

  

I afraid you will have to create a new family instance to place it on a different face.

  

Can you achieve what you want manually in the UI? How does that go? And how does it affect the database when you look at it through RevitLookup and other db exploration tools?

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3

s_dineshkumarDEDFU
Explorer
Explorer

Hi @jeremy_tammik 

Thanks for the reply

No, Manually it is not possible to rehost with new face, but manually we can copy or cut paste, by using this it will generate new face family instance, i really need to avoid the new family instance here and reuse the exisiting face family instance to be rehosted to newface

 

  • As i work with DB and revit look up i got the below information, the face family instance lose the information in sketchplane, but still the sketchplane is not deleted

s_dineshkumarDEDFU_0-1714022694108.png

 

0 Likes