Revit mean sea level parameter with Dynamo

Revit mean sea level parameter with Dynamo

Gustiiv.hedman
Observer Observer
1,900 Views
7 Replies
Message 1 of 8

Revit mean sea level parameter with Dynamo

Gustiiv.hedman
Observer
Observer

I use Revit 2020 and Dynamo 2.2.1
Is it possible to create a Revit parameter where you can change the height of a floor from mean sea level?
I have tried to make a dynamo script that is linked to a parameter with the name "Elevation Top" and this parameter is visible in the Properties bar when you click on a floor. But when i change the value of the "Top elevation" parameter it just resets.

What I need is a parameter where i can change the elevation of a floor from the mean sea level by just typing in the correct height for that floor without having to use the "Height Offset From Level" and then use a calculator to calculate the correct offset to put in to higher or lower the floor to it's correct mean sea level .  I am new to Dynamo and programming in general but this is the script I but together. 

Dynamo script.PNGProperties.PNG

 

0 Likes
1,901 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable

Do you need Dynamo for this?

Change the level markers to Survey point and they will give the levels relative to sea level.  Place your levels at the height above 0 that you would like them.  The floors need to belong to a level, so set up these levels first.

0 Likes
Message 3 of 8

Gustiiv.hedman
Observer
Observer

That doesn't solve the problem. In the real project i have a lot of different highs on the floor levels but i only have around 10 Revit levels so all the floors ar offseted from these levels to put them in the right mean sea level height. So I want to create a parameter in the properties tab where I can just enter the sea level height I want the floor to move to and it will move to that height. Instead of having to calculate what "Height Offset from Level" I have to wright in for it to get to the right sea level height.

For example If i want the floor to be bound to Level 2 and the sea level height at Level 2 is 7000 mm, but i want the floor to be at 8000 mm but still have a connection with Level 2 i have to enter 1000 in the "Height Offset from Level" instead of just entering the top elevation of the floor to 8000 mm.

0 Likes
Message 4 of 8

Anonymous
Not applicable

Place a spot elevation on each floor that you would like to adjust, and set it relative to the Survey Point.  Click on the floor and you can enter a new height on the elevation marker - the floor will move to that level, regardless of it's associated level/.

0 Likes
Message 5 of 8

Gustiiv.hedman
Observer
Observer

That works but I would have to annotate all floors in the project to be able to change floors that way. And in the current project I'm working in we have 1135 floors so it fels like it would be easier to just have a separate parameter in the properties tab for the sea level.

0 Likes
Message 6 of 8

Anonymous
Not applicable

You in any case have to set the level for each floor, even if it was in the properties tab.  I would have thought that you will need to annotate those floor levels at some point anyway, so one task done.

0 Likes
Message 7 of 8

Gustiiv.hedman
Observer
Observer

That's true, but everyone in the project have separate working views for each floor and the annotations only apply to one view so for us i would be easier to just have one parameter that is available for everyone who works in the project. But i don't know if that is possible to do or if we have to use your annotation solution. 

0 Likes
Message 8 of 8

RDAOU
Mentor
Mentor

@Gustiiv.hedman 

 

This is not a Revit question, you should take it to the Dynamo forum...you may be more lucky getting answers there 

 

Anyhow, to be able to control the elevation of floor elements you either need to control the value of "Offset from Level" or the elevation of the Level datum...Your graph doesn't do any of those

 

  1. What type of parameter is the "elevation top"... and how does changing its value change the elevation of the floor elements?
  2. the built in Elevation at Top parameter is a read only reporting parameter = <"Elevation of the Level datum" + "Offset from Level"> … you changing than user added parameter "Elevation Top" basically does nothing... once you re-run the DYN it will reset to the value of Elevation at Top...what you need to control is the offset from level
    • you would need to Get the Elevation parameter of the level datums for all slabs per level
    • you need to have a list of final elevations which you would  feed as an input to calculate/set value the "Offset from Level"

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes