Sample for Rehost API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are facing issues when we try to copy and paste walls and its hosted element using
ElementTransformUtils.CopyElements
method. The resulting hosted elements are not associated to wall.
So, I am looking for a sample/code snippet for Rehost API and unable to find any sample.
The below link has the documentation for rehost method but I could not find related code samples.
https://www.revitapidocs.com/2023/a222958c-4b12-075b-ade4-d78642c40d90.htm
I am not able to create an object for Autodesk.Revit.DB.Form class to call the rehost method. Form class does not have any constructor.
Any suggestion or code snipped is highly appreciated.
Thanks.
Balaji A