Duplicating Assembly sheets into another Revit session (file)

Duplicating Assembly sheets into another Revit session (file)

Anonymous
Not applicable
1,330 Views
3 Replies
Message 1 of 4

Duplicating Assembly sheets into another Revit session (file)

Anonymous
Not applicable

I am trying to work on a Macro that can duplicate assemblies (with its sheets, views and annotations) across different projects that use the same assembly or unit (family), in a similar fashion as we do when using "Transfer Project Standards". I have been using Troy's macro (http://revitcoaster.blogspot.co.uk/) to duplicate sheets successfully and read Jeremy Tammik's post (http://thebuildingcoder.typepad.com/blog/2012/09/parts-assemblies-partutils-and-divideparts.html) about the basic information used when working with assemblies. However, I have no clue about how to bridge those two and been able to write codes to transfer the assemblies to another opened session in Revit, which would have the families loaded (the ones where I am creating the assemblies).

I have very basic knowledge of writing codes in VB, C# and .NET, but I am looking into ideas of how can I accomplish this. If you have any ideas about it, please let me know, as this would be very useful for the design workflow in the company I work for.

Thank you very much, and best regards,

 

Francisco

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

jeremytammik
Autodesk
Autodesk

Dear Francisco,

 

Sounds like an interesting task.

 

As far as I know, if you can achieve this manually through the user interface, it sould be possible progrmmatically as well.

 

The copy and paste API is probably the most important tool for you in this case:

 

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

 

You may need to copy and paste certain things together, to ensure that their mutual relationships are preserved in the copied elements.

 

In other cases, you may need to copy and paste in several separate steps, to ensure that certain elements are present and ready before others arrive that require their prior presence.

 

Please let us know how you get on with this.

 

Good luck!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

Anonymous
Not applicable

Many thanks Jeremy!

 

I am just returning from a three week vacation, so will take a look at this now and keep the community posted about any progress.

 

0 Likes
Message 4 of 4

Anonymous
Not applicable

Did you ever get the macro working?

0 Likes