Can I copy the whole project programmatically?

Can I copy the whole project programmatically?

Anonymous
Not applicable
368 Views
1 Reply
Message 1 of 2

Can I copy the whole project programmatically?

Anonymous
Not applicable

Befor I start I would like to hear if someone else has an idea about that. I have a project with everything in it. Dimensions, rooms, tags, sheets and everything. Can I copy all of that to a database then recreate that in other new file.

 

Why is that? I have the project base point in worng place and that annoy me. I manage to solve it other way but I would like to see the project right positioned.

 

Any one who think about it? Try it?

 

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

jeremytammik
Autodesk
Autodesk
Accepted solution

In theory, yes.

 

In practice, no.

 

Why?

 

To read and understand all the elements, their data and relationships stored in the BIM in order to transport it to an external database or another model, you would basically be rewriting the entire Revit engine.

 

I would not consider that a realistic undertaking.

 

I suggest you find some other way to solve your problem.

 

If you just need to move your entire model, or, looking at it differently, your entire coordinate system, you might be able to do something with the MoveElements method:

 

https://apidocs.co/apps/revit/2019/3cf8c9dc-f4d1-12f0-d7a9-e126331cd858.htm

 

Cheers,

 

Jeremy

 



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