URGENT: I have deleted my Levels!!!!

URGENT: I have deleted my Levels!!!!

greg_lacle
Enthusiast Enthusiast
713 Views
5 Replies
Message 1 of 6

URGENT: I have deleted my Levels!!!!

greg_lacle
Enthusiast
Enthusiast

I have deleted my levels, to try to re-create them, however I screwed up.

Is there a way to retrieve the Floor Levels? (I can't undo anymore, because I closed it and opened it a few times)

 

There must be a way to get them back, because the Levels Lines are there, its just I can't see the Level Floors anymore.

 

please Help.

 

Greg

0 Likes
714 Views
5 Replies
Replies (5)
Message 2 of 6

syman2000
Mentor
Mentor

Are you working with central model? If so, there is a way to recover them by clicking on show history

 

syman2000_0-1693965791295.png

 

Select one of the history last saved and then export

 

syman2000_1-1693965867852.png

 

 

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
0 Likes
Message 3 of 6

greg_lacle
Enthusiast
Enthusiast

I'm not working with a central model 😞

0 Likes
Message 4 of 6

syman2000
Mentor
Mentor

Do you have a backup file? Also is the file on network server?

 

syman2000_0-1693968082143.png

If the file is on network server, there is a chance you right click and click on previous version tab. There will be backup of that file and you should be able to recover them.

 

syman2000_1-1693968187292.png

 

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
0 Likes
Message 5 of 6

ToanDN
Consultant
Consultant

Do you mean you delete the floor plan view of that level but the Level itself is still there?  If so, recreate the view by going to View menu > Plan views > Floor plan > Untick the box at the bottom > select the level to create a view.

0 Likes
Message 6 of 6

stefan_gokstorp
Advocate
Advocate

get in a 3d view with out croping and level visible

Open Dynamo write python. 
open the python node.

post this script in the python node.

import clr
clr.AddReference("RevitServices")
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import FilteredElementCollector, BuiltInCategory, BuiltInParameter
from RevitServices.Persistence import DocumentManager

# Get the active Revit document
doc = DocumentManager.Instance.CurrentDBDocument

# Create a collector to retrieve levels and filter out element types
collector = FilteredElementCollector(doc)
collector.OfCategory(BuiltInCategory.OST_Levels)
collector.WhereElementIsNotElementType()

# Initialize a list to store level information (name and elevation)
level_info = []

# Loop through the collector and extract level name and elevation
for level in collector:
    level_name = level.Name
    elevation_param = level.get_Parameter(BuiltInParameter.LEVEL_ELEV)
    if elevation_param:
        elevation = elevation_param.AsDouble()
        level_info.append((level_name, elevation, level))

# Output the list of tuples containing level name and elevation
OUT = level_info

if you hold over the script node after running there should be a number press it to see the result number 2 is the actual element you click on the green numbers your level gets selected in the view.

stefangokstorp_0-1694087968041.png

 

0 Likes