pyRevit icon indicating copy to clipboard operation
pyRevit copied to clipboard

Duplicate sheet tool

Open eirannejad opened this issue 7 years ago • 26 comments

Tool specs:

  • [ ] Must duplicate one or more sheets
  • [ ] Must be smart about duplicating model vs detail views
  • [ ] Must be smart about the sheet contents
  • [ ] Must be smart about the sheet metadata including revisions
  • [ ] Must provide options for the user to config tool behaviour

eirannejad avatar Jul 11 '17 18:07 eirannejad

Hi, amazing job you did with pyrevit.

I am running into an issue with this very feature: sheets are copied but not views. no error so far in the popup window, views are reported being copied. I use Revit 2019 and both projects are workshared. Views doesnt exist in destination file, just a revit message saying a titleblock family is renamed to avoid conflicts. 

_Copying Sheet(s) to Document: 18-0220_DEG8#2019_Studie påbygg_julienUMM6R

Copying Sheet: A42_3-00_01 - Snitt A-A, langsnitt

  Copying/updating Sheet: Snitt A-A, langsnitt

    Copying/updating view: Snitt A-A

Skipping revisions...

Copying Sheet: A42_3-00_02 - Snitt B-B, tverrsnitt og fasade mot nord i passasjen

  Copying/updating Sheet: Snitt B-B, tverrsnitt og fasade mot nord i passasjen

    Copying/updating view: Snitt B-B

Skipping revisions...

Copying Sheet: A42_3-00_03 - Snitt E-E, tverrsnitt og fasade mot sør i passasjen

  Copying/updating Sheet: Snitt E-E, tverrsnitt og fasade mot sør i passasjen

    Copying/updating view: Snitt E-E

Skipping revisions...

Copied 3 sheets to 1 documents._

jbenoit44 avatar Jan 09 '19 12:01 jbenoit44

@jbenoit44 Model views can not be copied at the moment as they are 3D cuts of the actual model. So in some sense it does not makes sense to copy them since they'll be blank in the target model. There is also complications with level associations as well. The solution is more complex and that's why I did not implement that when working on that tool.

Share your use case and ideas please tho. We'll implement it if it's a useful feature that could save a lot of time.

eirannejad avatar Jan 09 '19 18:01 eirannejad

When dublicating a sheet.

  • Title Block(s) and legend views must be copied and inserted on the same spot. (Legend Views and Tables can easily be copied and inserted on the new sheet.)

  • Sheet Nr must be increased. (increased until it hits a nr which can be used. )

  • Sheet Name can be set to "old name"-copy.

  • Copying a Floor Plan/Elevation/Section is difficult because it must be duplicated first. (duplicated with Details, without details, as dependend View)

copying just the sheet with titleblocks and all views which can already be inserted on multiple sheets (Legends, Tables) would be a good start. Has this script already been coded up? Thx.

tillbaum avatar Jul 14 '19 12:07 tillbaum

Hello, I will code this one up. But I will not include Views that have to be duplicated first.

tillbaum avatar Jul 27 '19 12:07 tillbaum

I would love to see such feature in PyRevit !

dsellam avatar Aug 27 '19 15:08 dsellam

Similar to https://github.com/eirannejad/pyRevit/issues/840

eirannejad avatar Feb 28 '20 16:02 eirannejad

Tillbaum, that would be fine, delete any views on the sheet, but keep any annotation that was added (guide grid settings, graphics scales, north arrows, etc...) in 2020 you should be able to keep any legends added to the sheet as well.

Hmunsell avatar Feb 28 '20 19:02 Hmunsell

Legends and Schedules can be added to multiple sheets naturally. All other views (drafting, floorplan, section....) have to be duplicated. Here is my version. of the Dublicate sheet tool. It supports dublication of multiple TitleBlocks and legends Thats all it does.

Chosse a sheet and click the dublicate button. It creates a new sheet with the same TitleBlocks and legends on the selected sheet and places TitleBlocks and legends on the same coordinates. dublicatesheet.pushbutton.zip

tillbaum avatar Feb 29 '20 15:02 tillbaum

Hi there. I cannot emphasize enough how much we need a tool to copy sheets WITH VIEWS between Revit files. Every large project is set up using multiple models. You also do detach copies to work on options and any work done needs to be transferred back to main project quickly.

Do you think this feature can be added in? Once again - this issue occurs regularly!

Many thanks, M

cinkovic avatar Sep 18 '20 13:09 cinkovic

Do you want to copy sheets between different Revit Projects?

tillbaum avatar Sep 18 '20 16:09 tillbaum

Do you want to copy sheets between different Revit Projects?

Yes I do.

cinkovic avatar Sep 27 '20 02:09 cinkovic

Hey,

Thanks for a quick response. Sorry I did not write back - your email ended up in the spam folder:(

Yes, preferably sheets containing model views (not schedules or legends). We do work on multiple files ie facade model & internal model. We also do design exercises in detached models that, when accepted, have to be copied to the main central model. Currently we have to recreate manually any sheets created in detached models & having the possibility to copy it back would be a game changer.

Marcin

On Fri, 18 Sept 2020 at 18:25, Tillmann Baumeister [email protected] wrote:

Do you want to copy views between different Revit Projects?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/212#issuecomment-694962680, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQE7R4GT24R732XIZHTVPWTSGOCY7ANCNFSM4DSSUJDQ .

cinkovic avatar Jan 17 '21 18:01 cinkovic

So do you copy your detached models manually back to your main model?

tillbaum avatar Jan 17 '21 19:01 tillbaum

THis can be done with the revit api

tillbaum avatar Jan 17 '21 19:01 tillbaum

Tillmann, It's about sheets with views that need to be copied between models. There are many reasons why we'd like to do it, the bigger project team, the more reasons we have. PyRevit does it for schedules and legends. I want to do the same for whole sheets with plans (including callouts), sections & elevations on them. Do you think this is possible as well? M

On Sun, 17 Jan 2021 at 20:38, Tillmann Baumeister [email protected] wrote:

THis can be done with the revit api

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/212#issuecomment-761867573, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQE7R4G65C2IB67ZDR43ZGLS2M4CVANCNFSM4DSSUJDQ .

cinkovic avatar Jan 17 '21 19:01 cinkovic

Technically yes, it can be done. But its a lot of work. (Don't know yet how much work it would mean for me.) Because you would have to copy the model and all the views (or create new ones) too. Can you show me a vid, or a photodocumentation of the workflow. What you want to achieve?

tillbaum avatar Jan 18 '21 17:01 tillbaum

I wanted to do something similar, copy model elements from one model to the other, so maybe I could do it, but I also have a job - I have to take care of, so I don't know how much time I could afford.

tillbaum avatar Jan 18 '21 17:01 tillbaum

Let me briefly describe what I want to achieve. I have a project, a masterplan with a number of buildings. Each building consists of a few models at our end (interiors, facade, basement) + we detach models for some design studies. In addition we have coordination drawings with multiple consultants that contribute with their models to the project (structural, M&E, landscape etc). I want to copy 'the work' from one model into the other and it may consist of two parts: geometry and/or drawings. You can copy model content manually (paste in place, copy monitor, bind). This is therefore not what troubles me the most.

Simply speaking - you cannot copy drawings, like this one: [image: image.png] Bay study being only an example, in Revit terms this is a section/elevation, probably with a view template. Annotations are a bonus as you can copy them in place later.

I therefore want to focus on copying sheets with views. I understand that it may be technically complicated. I have some limited knowledge of python, less so with Revi API. I don't know if that can be of any help, I would perhaps like to at least understand where the complecticies are.

Regards, Marcin

On Mon, 18 Jan 2021 at 18:50, Tillmann Baumeister [email protected] wrote:

I wanted to do something similar, copy model elements from one model to the other, so maybe I could do it, but I also have a job - I have to take care of, so I don't know how much time I could afford.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/212#issuecomment-762393662, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQE7R4GZ5KTDS5VMQYHXB3LS2RYG3ANCNFSM4DSSUJDQ .

cinkovic avatar Jan 20 '21 11:01 cinkovic

What do you mean with drawings? 2d geomentry like lines and text, dimensions and annotations?

General Tip: You can also link existing models into other models.

tillbaum avatar Jan 20 '21 23:01 tillbaum

I cannot see the image you provided. You can send it to me via email: [email protected]

tillbaum avatar Jan 21 '21 00:01 tillbaum

Views on sheets are only pictures of your main 3D model.

If you want to copy one view from one 3D model to the other, you would also have to copy the whole 3d Geometry which is displayed by your view.

This would mean:

  1. select all 3D geometry which is displayed by your view on the sheet and copy it to the second model. On same coordinates.
  2. create the same view (with same settings) in your second model.
  3. Create a sheet, and place the view on it.

Another workaround would be to export the sheet including all view as a dwg. And import the dwg in the second model. Then you would have a 2D representation of the 3D Geometry of your first model.

tillbaum avatar Jan 21 '21 00:01 tillbaum

I'll try to elaborate, but quickly: imagine that you have 3 models: one that contains geometry only, second one with sheets only. Second one has first one linked. Third one is empty and the task is to copy into it selected sheets, say a sheet with a floor plan, a sheet with an elevation, a sheet with a section and one with callouts. Each sheet has a drawing number, a drawing frame. Each view has a view template + annotations. Would it be possible?

On Thu, 21 Jan 2021, 01:10 Tillmann Baumeister, [email protected] wrote:

Views on sheets are only pictures of your main 3D model.

If you want to copy one view from one 3D model to the other, you would also have to copy the whole 3d Geometry which is displayed by your view.

This would mean:

  1. select all 3D geometry on your view and copy it to the second model. On same coordinates.
  2. create the same view (with same settings) in your second model.
  3. Create a sheet, and place the view on it.

Another workaround would be to export the sheet including all view as a dwg. And import the dwg in the second model. Then you would have a 2D representation of the 3D Geometry of your first model.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/212#issuecomment-764054763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQE7R4ARAYVNWMK2L4OZ5GTS25WH3ANCNFSM4DSSUJDQ .

cinkovic avatar Jan 21 '21 07:01 cinkovic

I believe this issue is about duplicating sheets between projects. Maybe the issue name could be changed to what I believe is the name of the tool "Copy Sheets between Open Documents".

( I'm looking for a way to duplicate Sheets in the same projects ... )

DuncanLithgow avatar Apr 21 '21 10:04 DuncanLithgow

@eirannejad is this new tool still applicable given 2022.1 released with a duplicate sheet tool? I think copying sheets with model geometry from one model to another is a separate issue. My own opinion is that the copy model views from project to project tool would require too much customization each time it is used for it to be worth the time to code it.

alexdaversa avatar Oct 20 '21 14:10 alexdaversa

I think I agree with @alexdaversa that actions between models is a different tool and should be in a different place. The use case @cinkovic has described is still not clear to me and needs more precise language taking terms from the Revit interface. But please, in a different issue (or rename this one)

DuncanLithgow avatar Dec 18 '21 19:12 DuncanLithgow

@cinkovic @tillbaum - Im having a similar issue, working on a large proyect with multiple teams and not being able to use cloud models. To merge sheet work between teams, Ideal workflow would be to transfer Model work with RVT linking and binding, and then being able to transfer views, detail and sheetwork with this tool.

Thank you and thank you again for the effort, time and dedication put in such an amazing Plugin.

NachoSupparo avatar Jan 19 '22 15:01 NachoSupparo