# Sheet.ByNameNumberTitleBlockAndViews operation failed

**URL:** https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048
**Category:** Packages
**Created:** [July 8, 2019, 11:49am UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048 "2019-07-08T11:49:10Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![abel](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@abel](https://forum.dynamobim.com/u/abel)
#### Post date: [July 8, 2019, 11:49am UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/1 "2019-07-08T11:49:10Z")

</div>

Hi

This wrong behaviour of the tool  
have not been resolved yet at least with Dynamo 2.0.2.  
Warning: Sheet.ByNameNumberTitleBlockAndViews operation failed.

> [@Help with Sheet.ByNameNumberTitleBlockAndViews error](https://forum.dynamobim.com/t/help-with-sheet-bynamenumbertitleblockandviews-error/18267):
>
> Hi. I’ve created a script that allows to select the levels, view templates and scope boxes and automatically create floor plan views and rename them to “Prefix Level Name Suffix”. The next feature I want to add is placing these views in sheets. And so far it creates the sheets with the right Number and Name but always fails to place views on sheets. The view once applied the scope box fits into the sheet (if that makes a difference). The error is something like: Warning: Sheet.ByN…

I copy here the same comments I added in that thread.

I got the same behaviour. It comes when you try to generate views in the same workflow of placing them in a sheet.  
I think this is a faulty behaviour of Dynamo. The views keep the original size when they were created no matter you try to apply later a scope box. No matter if you try to apply a passtrough before Sheet.ByNameNumberTitleBlockAndViews is going to pick up the views from the “original existence” with the corresponding size. In fact, if you create views from different ways you realise it only catches the “first view” was created.

I tried to use SetCropRegion of Rhythm and it did not work. In fact it even gave problems to generate the views.

I managed to get they to be inserted in the sheet with the tool Create Viewport of Rhythm but with the problem of viewport title line fit with the original size of the view. Even it is clearly smaller because the scope box you applied.

Obviously if you insert that created view in Revit you are not going to have that wrong behaviour.

It is frustrating how badly Dynamo works specially with the sequence of process.

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [July 8, 2019, 1:20pm UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/2 "2019-07-08T13:20:34Z")

</div>

Post a sample RVT and the DYN you are getting these results with. Note that there are other users in the thread you linked that got this working, but had to work with list levels and lacing to make it work. It’s difficult logic and requires a lot of knowledge of the Revit API as well.

My guess is that you have this and an order of operations to deal with, but it’s a guess due to the lack of information you’re giving at this time.

---

<div class="post-metadata">

### Author: ![abel](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@abel](https://forum.dynamobim.com/u/abel)
#### Post date: [July 8, 2019, 2:55pm UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/3 "2019-07-08T14:55:26Z")

</div>

In the image attached should be possible to see the sections are inserted in the sheet with a incorrect size of the title line (the size seems to be related with the “original size of the views” before were applied the scope box). I forgot to comment the sections are generated with the tool SectionView.ByCoordinateSystemMinPointMaxPoint.

I applied the scope boxes before go to the sheet because my goal is to locate them the best possible.

If there is no other solution, in the meantime this tool is repaired, maybe I can try to duplicate the views from the sheet and to insert in the definitive sheet after change twice the scope box. Maybe so I get Dynamo lost the associated size of the original view. I am going to try to change the view title, to other and change maybe so adjust…but I am afraid it is going to keep the “original size”.

Notice this is not a problem with the title line. If I insert the view in other sheet in Revit it fits as expected, properly.

I am working in Revit 2019.2 Dynamo 2.0.2

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/68aa12336aa6650d1ab4743f70f2fd7dd804a72f.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/f/af8cf8041bfdd5af04fbdb52f0a0c54dd0717061.png)

Thank you.

---

<div class="post-metadata">

### Author: ![abel](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@abel](https://forum.dynamobim.com/u/abel)
#### Post date: [July 8, 2019, 4:14pm UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/4 "2019-07-08T16:14:42Z")

</div>

The solution of duplicating views after the sheet have been set worked. This probably can be done in many ways. This workaround sort out the issue.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/5/6554d91fb35fcb968fdfdb852420fb35f35e2d68.png)

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [July 8, 2019, 4:16pm UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/5 "2019-07-08T16:16:23Z")

</div>

> [@jacob.small](#):
>
> Post a sample RVT and the DYN you are getting these results with

We would really need these two things to help. Otherwise we would have to:

- Start a new project.
- Draw some model elements so we know views are being created.
- Start a new dyn.
- Set up view creation.
- Set up crop region adjustment.
- Set up sheet creation.

Each time we do any of the above we have to guess at how you are doing, doubly so as data structure will matter here.

---

<div class="post-metadata">

### Author: ![abel](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@abel](https://forum.dynamobim.com/u/abel)
#### Post date: [July 8, 2019, 4:32pm UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/6 "2019-07-08T16:32:00Z")

</div>

Here the link of the test project.

> **[Project to experiment about phase sheet.rvt](https://wetransfer.com/downloads/f7e0f5d05db2082b60440143260d85d520190708162907/9e6320)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

And the link of the dyn archive. Sorry it is very messy at the moment because I was checking the main things…

> **[To create phase sheet\_sections with filled regions v0018.dyn](https://wetransfer.com/downloads/1eac57f9780cbcca97f21a15c634f01320190708163057/6c0f2b)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

Thank you

---

<div class="post-metadata">

### Author: ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)
#### Post date: [July 9, 2019, 2:06am UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/7 "2019-07-09T02:06:32Z")

</div>

Have you tried using Transaction.End and Transaction.Start nodes to make Revit “save” the work that has been done?

---

<div class="post-metadata">

### Author: ![abel](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@abel](https://forum.dynamobim.com/u/abel)
#### Post date: [July 9, 2019, 8:54am UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/8 "2019-07-09T08:54:53Z")

</div>

Yes. That worked.  
It resolved not only the creation of sheet but other future process which were not working properly.

 ![image.png](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/442987f8f6df4b8cdf2d1e6d152252f6d6e49ea7.png)

Thank you very much.

---

<div class="post-metadata">

### Author: ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)
#### Post date: [July 9, 2019, 11:26am UTC](https://forum.dynamobim.com/t/sheet-bynamenumbertitleblockandviews-operation-failed/38048/9 "2019-07-09T11:26:20Z")

</div>

Great to hear! please mark a solution for the post.
