Copying 3D views from One project to Another

Copying 3D views from One project to Another

Anonymous
Not applicable
13,331 Views
8 Replies
Message 1 of 9

Copying 3D views from One project to Another

Anonymous
Not applicable

Hi, 

 

Is there any work around to copy 3D views from one Project to Another programmatically. am aware that 2D views can be copied using CopyElements() Method. But I am looking for a solution to copy 3D views. When i use CopyElements() method on 3Dviews, getting an error

 

"The specified view cannot be used as a source or destination for copying elements between two views."

 

Please help. 

 

Regards,

Rahul

0 Likes
Accepted solutions (1)
13,332 Views
8 Replies
Replies (8)
Message 2 of 9

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous ,

Have a look at this below link 

https://thebuildingcoder.typepad.com/blog/2015/05/copyelements-revit-2016-scalability-python-and-ruby-shells.html 

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 9

joshua.lumley
Advocate
Advocate

What aspects of the 3D view do you specifically want to duplicate? For example do you need the section box position, visibility/graphics states and the view name?

0 Likes
Message 4 of 9

Anonymous
Not applicable
Thanks for your reply! I want to copy 3D views from one file to another like we copy 2D view in the same way it should copy 3D views also using element id.
0 Likes
Message 5 of 9

joshua.lumley
Advocate
Advocate
Accepted solution

I don't think you can do that with the Revit API because it is not possible to do that via the user interface. 

While Revit allows inserting Drafting views and schedules from an existing project, it does not have built in options to allow copying/inserting 3D / Plan views between different Revit projects. If you are looking re-use just a few views, then it would probably be simpler to create new views in the new project.

 It could be possible however to recreate a 3D view by doing something akin to 'match properties' it would take some coding. But there is no native copying function for 3D views like there is with 2D views.

0 Likes
Message 6 of 9

studioscarpace
Explorer
Explorer

A little late to this discussion, but hoping it will help the next person...

 

If you are looking to copy a 3D perspective view, this is for you.

 

  1. Open the file that has the 3D view you want to copy.
  2. Go to a Plan view.
  3. In the Project Browser, right click on the 3D view that you want to copy.
  4. Hit "Show Camera."
  5. Camera will show up on Plan view.
  6. Control-C (Copy).
  7. Go to the project that you want to copy the view into. 
  8. Open a Plan view. MAKE SURE it's the same level that you copied the view from in the other file.
  9. Modify > Paste > Align to Current View.
  10. The new 3D view will show up in the Project Browser.

This worked perfectly for me when I accidentally adjusted a 3D view. I've been sending updated renderings to clients and I wanted the renderings / perspectives to consistent between updates. I was able to copy in the 3D view from an archived file that I had saved prior to accidentally adjusting the 3D view.

Message 7 of 9

nelly6HMK4
Community Visitor
Community Visitor

Thank you so much! It just worked for me!

0 Likes
Message 8 of 9

mitchcantlon
Explorer
Explorer

awesome thank you!

 

I got a bit carried away culling 3d views and then realised I deleted an enscape view that needed to be exactly the same for updates.

 

Cut and pasted the camera from a backup!

0 Likes
Message 9 of 9

pgubitose
Explorer
Explorer

Thank you... This saved me a lot of time working in Revit LT.

0 Likes