The Engineers Guide to Drinks – Continued

After my last post about The Engineers Guide to Drinks I got lots of nice reactions, tips and suggestions. The coolest thing was Shaan Hurley making a blog post about the project on his Between the Lines blog. Meanwhile I have done a bit more work on the first glass as well. One thing I wanted to do is be able to tag the different liquids with their material and their volume, which I was not able to do with the family I had as it was just 1 family with everything in it. I had given this a little thought and Aaron Maller over at revitforum.org confirmed what I was thinking. So I was going to need separate, shared, nested families for the liquids. The hard work was already done, so I had to take my glass, remove all the geometry except the one layer of liquid, remove the formula’s load into my main family, link parameters and DONE! Well that is the short version at least, took a little longer, but after a few hours I had a working glass again and was now able to tag the liquids.The Engineers Guide to Drinks - tags

Unexpected help

To my surprise more people had been working on their own project as I found out when I got an email from Melina Vlachousi:

Hello Robin,

I had tried to work on this as well but it kinda fell through. I managed to build a few families for the glasses and some of the ingredients, maybe they can be useful to you and to others who want to work on this project.

Melina

 

She also send me the families she had been working on, for us to use:

The Engineers Guide to Drinks - help

Pretty sure I will be using the Fruit Squeeze, Fruit Wheel and Cherry and the glasses are a good start for the overall shape, but will need a lot of parameters, but they are a first step.

Added all the materials from the CAD file into my Revit project and setup the first batch of drinks. As you can see did not add the fruit and the way of sturing the drinks yet, but so far this confirmed that everything works well so far.

The Engineers Guide to Drinks - cocktails

Adding fruit

Next was the fruit I got from Melina. They were a little to large for my glass, so I scaled them down a bit and added them to the family with a visibility parameter. Rearranged the dashes a bit too, so it all is a bit more compact. We are slowly getting to the end of this glass, when we can start to clean up things a bit and maybe do some things a bit smarter.

The Engineers Guide to Drinks - drinks with fruit
Download: http://www.deurloo.net/download/3229/

Now what?

As you can see in the previous post, there are a few more glasses to be build and there needs to be a project made with all the glasses and materials in it, so we can build each cocktail we want. So, if you want to help out in any way, let me know with the reply form below, the contact form on this website, Twitter, Facebook, LinkedInengineersguidetodrinks@deurloo.net or on the Revit Forum and we’ll figure out who can do what.

 

Previous Post: The Engineers Guide to Drinks

Next Post:

The Engineers Guide to Drinks – Revit edition

Most of us will have the need for a nice drink after a hard week at the office once in a while and some of us will choose to make ourselves a cocktail, or go out and have somebody make one for us. This cocktail will give us some relaxation, but it can also spark our engineering brain. How is this cocktail mixed, what type of booze is in it and how does that relate to the dimensions of the glass it is in and can I streamline the process of making a cocktail. Well a while back @Autodesk made this tweet:

Which was about a CAD file that is known as “The Engineers Guide to Drinks” which is a drawing of different drink in the way an engineer would make the drawing. Different hatches, symbols for various things. It looks very nice and has the feel of a construction drawing.

I had seen the file before and thought is was pretty cool then and still did this time, but wanted to know a bit more. So, I ended up at the blog ‘Between the Lines‘ by Shaan Hurley. He was the one that did the CAD drawing based on a drawing made in 1972. Over the years there have been multiple changes to the file. One that is very cool is an old hand drawn one from 1974 which is in the US National Archives for some reason. Find out it’s story here.

The Engineers Guide to Drinks_1974

Cocktail construction file found in the US National Archives.

On his blog Shaan set the challenge (well that’s how I see it anyway) to make the file in other CAD programs, Revit being one of them, and that triggered me to give it a go, thinking it should not be that hard.

 

First try

The first task was going to be the cocktail glass, nice cone shaped, with simple dimensions. So I looked up the size of a cocktail glass and modeled that in Revit, which was an easy task. Needed to fiddle a bit with it to get both the dimensions and volume right, but in half an hour or so the glass was there. Next task was to fill the glass with booze, started off with 3 layers and used trial and error to get the the right volumes and the glass looks pretty nice.

Blue Moon

I figured out the height of different volumes of liquid and I could change the volumes pretty quick. But then it hit me, “This is not a very Revit like way of doing thing my friend”. Figuring out the height of the liquids by trial and error might be OK for that one glass, but I was not going to do that one glass, I needed to make a lot of cocktails according to the previous attempts, so I was going to do this the Revit way and parameter the hell out of the glass. Well, that sure sounded a lot easier in my mind then how it turned out in the end.

 

The formula

Being 36 myself and out of school for 16 years or so and never really needing to do things like this before I had to think really hard about what to do. I needed the height of the liquid level for each layer and I knew the angle of the glass and the volume of the liquid (I knew that the cocktail had for example 10, 20 and 30 ml  of liquid in it). So how to calculate the height in the glass? I tried a lot of different ways, looked all over the internet and even asked colleagues to help me out and we could not solve it. Finally asked another colleague and he said that his son would probably solve it in 5 minutes. I thought, “sure he will”, but can’t hurt to let him try. That night I got a message telling me he indeed solved it in a few minutes and a photo of the calculations he made.

Berekening cocktail glas_Page_1

The calculation made by Myron Timmermans

Going over the calculations they kinda made sense to me, but I also realized I could never have gotten to that solution myself, so I’m very happy with the help I got.

This is the simple looking formula I am using for the calculations:formula used

b = height of liquid in the glass
V = volume of added liquid
h = total height of the glass
r = radius of the top of the glass

 

Getting it in Revit

I now had the right formula, checked it against my trial and error approach and it worked! Now to get that thing into my Revit family. This gave me a new set of challenges of course, as there are things in that formula you do not really use on a regular bases in Revit, how to do the cubic root thing for example. This is where the great Revit Forum helped me out. In the thread Revit Formulas for “everyday” usage I found the solution:

cubicroot

At this point I had all the data I needed to build the glass with parameters, so started with the glass I already modeled and added the needed ref planes, ref lines and dimensions to be able to control the height and angle of the glass.cocktail-glass-parameters

Then all the needed parameters and formulas. I have chosen to convert all my parameters to ones without units to avoid the Inconsistent Units popup in Revit. Pretty sure that is not needed and I might change that in the end, but for now removing them and at the end adding them again works well for me. As you can see from the drawing above and the parameters below I have chosen to calculate each height from the bottom of the glass instead of doing one layer at a time. This means I have to add the previous layers of liquid to the next one in order to get the total height.

cocktail-glass-parameters-02

Polished the family a bit and I am pretty happy so far. Still needs some work, but good enough to add it as a download

Download: http://www.deurloo.net/download/3229/

Now what?

As you can see at the top of this post, there are a few more glasses to be build and there needs to be a project made with all the glasses and materials in it, so we can build each cocktail we want. So, if you want to help out in any way, let me know with the reply form below, the contact form on this website, Twitter, Facebook, LinkedInengineersguidetodrinks@deurloo.net or on the Revit Forum and we’ll figure out who can do what.

But should we stop with Revit, can we BIM this thing??

 

Next Post: The Engineers Guide to Drinks – Continued

Phases in Revit a short explanation

There was a question on www.revitforum.org about phases in revit and if I could make a small explanation with some images, so here it is.

Making the phases

On the Manage Panel you will find the Phases button, once clicked you get a screen where you can make the phases you need. In the case from the question that will be 2 phases, one Existing and one New.

revit phases

 

Setting up Filters

This is basically where you tell revit what to do with which phase. You have 3 options, By Category, where it will show the object as it is setup in the family, so the standard way you made the family. Overridden, this is what you use when you want things in that phase to look different then the same item in another phase. Not Displayed, well that kinda explains itself. I named my Filter Example in this case.

revit phases filters

 

Setup the Overrides

This is where you tell an object on a specific phase what it should look like and you get about the same options as you get in the Visibility/Graphics settings. In my example I set the New items to be a wide green line and the demolished items to be a thin red dashed line.

revit phases overrides

 

Setting items on the right Phase

In an ideal world you would activate a phase before you start modeling you building and families you place will be placed in that phase right away. You can also do that after you placed the families, but that will be a bit more work. Seeing that the one asking the question has everything placed already I’ll explain how to change phases for families. If you select a family you will see 2 options in the Properties panel called Phase Created and Phase Demolished, which pretty much is what they do. Select a family (or multiple ones) and set them to the existing phase. Select the families that are new and set them to the New phase. If you have families that are placed in the existing phase, but will be removed in the New phase you can set that too, or use the Demolish tool (looks like a sledge hammer) in the Modify panel.

revit phases existing new

Setting the right phase and filter

Once that is all done you choose the right phase and filter in the properties panel and voila you get this (the text I added to make thins clear, that will not be added)

 revit-phasing-result