Is there any methods to lock the view

Is there any methods to lock the view

to1-2.wd
Observer Observer
2,337 Views
5 Replies
Message 1 of 6

Is there any methods to lock the view

to1-2.wd
Observer
Observer

although the eye elevation and target elevation already set

when insert other revit file. 

the eye elevation and the target elevation will change 

as a result nothing can see in the 3d view

Is there any method to lock the view?

 

THANKS  

0 Likes
Accepted solutions (2)
2,338 Views
5 Replies
Replies (5)
Message 2 of 6

ToanDN
Consultant
Consultant
Accepted solution

You can lock a 3D view using the lock icon on the bottom bar.

Message 3 of 6

barthbradley
Consultant
Consultant

What are you talking about?  Your brief synopsis is sorely lacking details.  Elaborate your workflow and results so we can understand.  

0 Likes
Message 4 of 6

Liloust
Enthusiast
Enthusiast
Accepted solution

Vous trouverez cet outils dans la barre en bas de votre écran (une petite maison avec un cadenas)

0 Likes
Message 5 of 6

barthbradley
Consultant
Consultant

Well, that's 2 for Lock View. I'm still on fence however - primarily because I don't understand your workflow.  What do you mean by "insert other Revit file"?    

0 Likes
Message 6 of 6

Bramdejong1985
Observer
Observer

Hello, 

 

Yes there is a button in the View Options beneath the drawing area to manually lock a 3D view. 
Hoever, why not automate this task with a method in a script. 

So yes there is a method to lock the views. 

In python, it would look something like this: 

    # Start transactie (pyRevit style)
    with Transaction(doc, "Oriëntatie vergrendelen") as t:
        t.Start()
       
        success_count = 0
        for view_name in selected_views:
            view = next((v for v in view_list if v.Name == view_name), None)
            if view and not view.IsLocked:
                view.SaveOrientationAndLock()
                success_count += 1
       
        t.Commit()
0 Likes