Hey!
Did anybody try to create a tool which can copy a few views from the Revit Linked model and create them(with the same parameters etc.) in the host model? I am trying to do so but I am stuck at the moment when I have to "copy" views from Revit Link Model to Host Model. Did anybody try it and it is feasible? Or maybe you got some tips about this topic.
Thanks!
Solved! Go to Solution.
Hey!
Did anybody try to create a tool which can copy a few views from the Revit Linked model and create them(with the same parameters etc.) in the host model? I am trying to do so but I am stuck at the moment when I have to "copy" views from Revit Link Model to Host Model. Did anybody try it and it is feasible? Or maybe you got some tips about this topic.
Thanks!
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
Take a look at the Revit SDK samples, especially DuplicateViews:
Subject: Copy paste drafting views and schedules from one document to another.
Summary: Use the copy paste APIs to copy drafting views and schedules from one document to another. The drafting view contents will also be copied.
Take a look at the Revit SDK samples, especially DuplicateViews:
Subject: Copy paste drafting views and schedules from one document to another.
Summary: Use the copy paste APIs to copy drafting views and schedules from one document to another. The drafting view contents will also be copied.
Hey! Thanks everyone for answering my question. I assume it is doable then 😄 I will look into these materials and maybe post my progress when I am done!
Thanks!
Hey! Thanks everyone for answering my question. I assume it is doable then 😄 I will look into these materials and maybe post my progress when I am done!
Thanks!
Great. Yes, please do. Thank you.
Great. Yes, please do. Thank you.
Hey! I would say long time no see! I just came back to this problem few days ago.
And so far it works ok 🙂
First I must say thank you @jeremy_tammik for your sample codes! These are great and I used some of them in my code(this is also a question, can I use them?)
Just a quick introduction how code is working:
Basically I can pick a few views from revit links and copy them to the host revit link. On the picture you can see I selected 3 of them and just 3 were copied.
However, sometimes when I am copying lost of views, I got a following error:
I guess that there is just a problem with some view or views that I cannot copy and it is more like a Revit error. Can anybody give me some guidance why Revit is not able to copy some views and some it can copy?
Hey! I would say long time no see! I just came back to this problem few days ago.
And so far it works ok 🙂
First I must say thank you @jeremy_tammik for your sample codes! These are great and I used some of them in my code(this is also a question, can I use them?)
Just a quick introduction how code is working:
Basically I can pick a few views from revit links and copy them to the host revit link. On the picture you can see I selected 3 of them and just 3 were copied.
However, sometimes when I am copying lost of views, I got a following error:
I guess that there is just a problem with some view or views that I cannot copy and it is more like a Revit error. Can anybody give me some guidance why Revit is not able to copy some views and some it can copy?
> Can I use the code?
Yes, sure, that is what it is out there for. It loves being copied, that is its one and only purpose in life. Thank you for your appreciation!
> Can some views not be copied?
Yes, I think that template views, can cause problems, for instance. Maybe some others also rely on specific document-specific elements or something.
> Can I use the code?
Yes, sure, that is what it is out there for. It loves being copied, that is its one and only purpose in life. Thank you for your appreciation!
> Can some views not be copied?
Yes, I think that template views, can cause problems, for instance. Maybe some others also rely on specific document-specific elements or something.
So the best idea would be to search which views are causing the problem and filter them beforehand so they do not appear on the list. Thanks! Will try to do that.
So the best idea would be to search which views are causing the problem and filter them beforehand so they do not appear on the list. Thanks! Will try to do that.
Can't find what you're looking for? Ask the community or share your knowledge.