Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Ramp - Top Level: None leads to warning

Julian.Wandzilak
Advocate Advocate
427 Views
3 Replies
Message 1 of 4

Ramp - Top Level: None leads to warning

Julian.Wandzilak
Advocate
Advocate

I was recently playing with changing height via Revit API and found out something I think is worth sharing here.

 

So first of all I had some problems with changing levels of Ramps. Checking it I changed by hand the Ramp's Top Level to "None" which resulted in having a warning pop out with message saying that "ramp is not long enough to match the top constraint plus offset".  But the top constraint shouldn't exist in that case (or should eq. to Top Offset)...

 

Ramp1.png

 

I was curious so I made the ramp extremely long - and the pop-out disappeared. It prompted me to do some investigations, which resulted in finding out that the warning disappears when the ramp length achieves the Ramp Max Slope multiplied by 3... Why I don't know 😉

 

ramp3.png

The funny thing is that changing Top Offset is not changing anything in this situation - you can put whatever you like there;)


Now if you compare it to the stair tool. Stairs have a parameter "Desired Stair Height", which you can change after setting Top Level to None. It looks that with ramps, we don't have this option. 

 

The other thing worth keeping in mind is that Revit uses "Maximum Incline Length" only during the ramp creation. After that, you will not get a warning if your ramp is too long.

 

Using this post I would also like to ask what is the best way of finding if the selected element is a ramp. With stairs, it is super easy if (element is Stairs) but with ramp I used :

#if !(RELEASE2024)
if ((BuiltInCategory)ele.Category.Id.IntegerValue == BuiltInCategory.OST_Ramps)
#endif
#if RELEASE2024
if ((BuiltInCategory)ele.Category.Id.Value == BuiltInCategory.OST_Ramps)
#endif

 

blog: w7k.pl more about me: Linkedin Profile
My add-ins for Revit: Drafter(180+ scripts) & Leveler
Accepted solutions (1)
428 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Autodesk
Autodesk

Sounds strange indeed. I asked the development team for advice on this...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

jeremy_tammik
Autodesk
Autodesk
Accepted solution

Thank you for reporting this. The development team confirm that this behaviour is by design, but indeed seems not so overly reasonable from a users' perspective. They will take another look at this. Maybe you should also raise a wish list item in the Revit Idea Station so that other developers can vote for it as well and add their support.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 4 of 4

Julian.Wandzilak
Advocate
Advocate
https://forums.autodesk.com/t5/revit-ideas/revit-ramp-upgrade-amp-warnings/idi-p/12049855

Sorry for the delay, but finally I did a quick topic in Idea Station regarding the ramp!
blog: w7k.pl more about me: Linkedin Profile
My add-ins for Revit: Drafter(180+ scripts) & Leveler