Copy detail groups between projects

Copy detail groups between projects

shehab_fekry
Enthusiast Enthusiast
703 Views
1 Reply
Message 1 of 2

Copy detail groups between projects

shehab_fekry
Enthusiast
Enthusiast

I have a template file that has many detail groups, how can I search by group type name and copy that type from that template to my active project using Revit API. that can be done manually by selecting detail group type from project browser in template file .. press Cntrl + C then go back to my project and press Cntrl + V

0 Likes
Accepted solutions (1)
704 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

I cannot vouch specifically for detail groups, but I can say that in general, the Ctrl+C / Ctrl+V copy and paste functionality is provided by the Revit API in the CopyElements method overloads:

  

https://www.revitapidocs.com/2024/7b56b5c2-3aff-f42b-ab47-de1f89a1070f.htm

  

Please take a look at The Building Coder Copy and Paste API applications:

  

https://thebuildingcoder.typepad.com/blog/2013/05/copy-and-paste-api-applications-and-modeless-asser...

  

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