![script color revisions script color revisions](https://www.mdpi.com/crystals/crystals-09-00126/article_deploy/html/images/crystals-09-00126-g010.png)
This way I didn’t have to use multiple GetItemAtIndex nodes.
#Script color revisions code
The little Code Block syntax: List.GetItemAtIndex(inputList, 4.7) is nothing more than saying get me items at index 4,5,6 and 7. Here’s how I did that and how I went about applying them: Next up was just creating a list that included only those revisions that I wanted applied to all of my sheets that were getting issued. I ended up making a custom node to get all revisions in the project:Īnd, here’s the code for Revision Properties node that allows you to extract some basic information about each revision: Next up is getting all of our revisions that we want to assign to those sheets. x=1 ? true : false is nothing more than this: Now, I am forced to do a little fancy IF statement here to convert 0’s and 1’s that “SHEET_SCHEDULED” returns to True and False which are the only arguments that List.FilterByBoolMask accepts. Again, “Get Built In Parameter” node can be found in archi-lab package.
![script color revisions script color revisions](https://i.ytimg.com/vi/IO6KTVsZQkg/maxresdefault.jpg)
The equivalent of “Appears in Drawing List” parameter is a BuiltInParameter called “SHEET_SCHEDULED” and since I personally much prefer using BuiltInParameter(s) to get param values – that’s what we use here.
![script color revisions script color revisions](https://i.pinimg.com/originals/52/4d/78/524d78d1d83e128f728eb783411ea97c.jpg)
Use “Get All Views” node from archi-lab package or simply Get All Elements of Category and then just use a “Appears in Drawing List” parameter to filter for sheets that are actually getting issued. Let’s get to it! Getting all sheets is relatively easy. Apply a list of revisions to every sheet – let’s say this was our first 100% CD issuance and I want all of the revision boxes to have SD, DD, and CD shown.Get all sheets that you want to add Revisions to – in my case all sheets that were going to appear on a drawing list.Of course I used Dynamo because what’s a better way to convince someone to learn a new tool than to show them some fancy stuff that it can do? As I watched* one of my junior designers do that for few hours – because who does this when they create the sheet? – I remembered that Revit API has recently** exposed that functionality and I could pretty easily automate that. Ticking off all of the appropriate “Revisions on Sheet”for every sheet in a couple hundred drawing set can be a bit tedious. This is one of those things that we all have to do, but very rarely actually want to.