Showing posts with label Rooms. Show all posts
Showing posts with label Rooms. Show all posts

Wednesday, August 12, 2020

LEGEND OR NOT

This one dates back 2 years to a discussion on the Volterra WhatsApp group.  I had met Mark Dietrick for the first time a couple of months earlier, in Tuscany at the Reality Capture workshop he was instrumental in organizing.  I don’t remember just what input he was asking for and what my contribution was, but I did a small exercise to illustrate a method which I will attribute to both of us.

This is also in response to a video that Paul Aubin posted with a cute little method for “faking” a legend for colour-coded furniture plans (or any other category)

There are two parts to the method.  The second part involves sorting room types into rows so their areas can be totaled.  I think that was Mark’s concept, but my memory is a bit hazy.  Anyway, I will come back to that.  The first part is a way of doing a “legend” for a coloured room plan that incorporates a column for areas.



The “legend” is actually a schedule.  Column 1 is the built-in Image parameter that was added to Revit some years ago.  Normally we might use that for something like washroom fittings to display a thumbnail image of the specified item.  In this case I loaded small coloured squares from a folder.  I created these squares using Photoshop, just 150x150 jpegs with specified RGB values. 

You need to match these RGB values to the ones used in the colour scheme for the plans.  Once you have assigned them to a room, they will show up in “Manage Images” and you can easily assign them to as many rooms as you need, via the popup dialogue.


 

In case you need to reserve the built-in Image parameter for some other purpose, it’s easy enough to create a new Project Parameter of the Image category.  In this case, I called it Colour Code 01 and put it in the Identity Data group along with the original Image parameter.  Don’t know of any way to move this up in the order.  If it was Furniture you could open a family up in Family Editor to do that, but being a system family, Rooms don’t open in Family Editor.

Not a big deal. This time I have used the original four images that I created, which match the first 4 colours that Revit automatically assigns to a Colour Scheme.



Let’s move on to the second part.  We want to have a separate area column for each category of room.  This is done by creating new, custom Area parameters for the Room Category.  I called these “Area-a”, “Area-b” etc.  We can use an “IF” formula to populate these columns.  If the condition is true, copy the automatic room area to the custom field.  If it is false set the custom field to zero.

I used an Integer parameter called “Dept Index” to achieve this.  So the formula takes the form: IF(Dept Index = 1, Area, 0)  For each value of Dept Index the formula is adjusted to match.


 

To coordinate “Dept Index” with “Department” I created a Key Schedule for the Room Category.  Believe it or not, I had never really used Key Schedules before, certainly not on a regular basis.  First of all you choose a family category (Rooms) then you choose to “Schedule Keys”. This will generate a “Room Style” field which you can use to control other fields, in this case “Department” and “Dept Index”.

If you decide to create another Key Schedule for Rooms, those two parameters will no longer be available.  You can’t have a parameter being controlled by two different fields.  That would lead to conflicts. 

In the Properties dialogue box, any parameters that are controlled by a Key Schedule are greyed out. I guess you might have a situation where you want to have two keys for Rooms, let’s say “Dept Style” and “Finishes Style”.


 

A schedule with multiple columns where most of the boxes contain a “zero” can be very confusing to read.  Too much irrelevant information.  To counter this, I came up with the idea of using “Conditional Formatting” to grey out all the zero cells. 




 

Paul used the example of a furniture plan, so I decided to test that example.  But first of all I wanted to generate a basic reservoir of colours that could be used “for ever more”.  These are all basically “Pastel Shades” … because you don’t want the colours of rooms or furniture to dominate over the walls that contain them.  I guess I might want to create another, darker set at some point that can be used for solid objects, maybe for walls of different fire ratings, acoustic or thermal insulation values. 

But step one is a set of 57 pastels starting with “lilac” and finishing with “pink”, plus five shades of Grey.

The naming convention uses a number to keep them in order, plus a RGB value to aid with setting the colours in a “Colour Scheme” or a set of “View Filters”



To colour the furniture I set up three view filters, simply named “style 1”, “style 2” & “style 3”.  These are based on the “Comments” field which sits next to the “Image” field.  At the moment these are coordinated manually, which is easy to do via a schedule.  I guess you could automate that with Dynamo if you really want.

In my current iteration the schedule is formatted as a simple legend, but it would be easy enough to add a quantities column.  You could also create separate columns for the different types of furniture perhaps so that you could see the distribution of styles for Sofas, then Tables, and so on.

Hope you found this helpful.  You can download my pastel images from the link below.

https://drive.google.com/file/d/1zNofFKBnOp9PuzZjQais-CXHGp6Xclf1/view?usp=sharing


 

 

 

Tuesday, December 3, 2013

ROOM SORTING

An interesting query came up in the office this morning.  May be old hat to you, but I thought it worth sharing.  You have a room schedule with categories of room, let's say Front of House (FOH) & Back of House (BOH).  You want the areas to display in separate, parallel columns.  Just to be clear, you don't want to sort the rooms into groups.  Instead you want to keep the rooms in numerical order and just nudge the areas across into the right column, like this.



We set up four new parameters: 2 of them are "YES/NO", the other 2 are "Areas" and these ones are calculated fields.  They will either display the area, or display zero, depending on the value in the YES/NO parameter.  Pretty simple stuff really.



The formula syntax is not very hard, but I always have to look it up.  It's an IF statement ...  IF (BOH, result if true, result if false)  Where BOH is a YES/NO parameter.  Result if true is "Area", ie make this Area parameter equal to the actual room area.  Result if falce is Zero.



One interesting side issue that I hadn't noticed before.  YES/NO parameters display as Tick Boxes in the editing window.  (on the sheet they become "yes" or "no")  Before you make any choices, they are ticked but greyed out.  Let's call this the dormant state.  In this dormant state the formula will not create a result.  The calculated field remains blank.  Once you make a choice, the blanks disappear.  "No" choices now display as zeroes, in my case 0.00m2 (the default formatting for square metres)



I can see the logic behind this.  You have an instant check on whether or not you made a decision for that room.  On the other hand it would be rather cool if I could force zeroes to display as blanks (say in the field format dialogue).  This would make the final schedule much easier to read.  Legibility is what construction documentation is all about (in my view), so that would be a useful option to have.  Obviously Revit knows how to leave fields blank, as my images demonstrate, so it shouldn't be too hard to implement.  Just a thought in passing.