Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Activate a view/sheet

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
1019 Views, 2 Replies

Activate a view/sheet

is there a way to switch between diffrent views thru api.

suppose i have 2 drawing sheets , now active sheet is "sheet1' i want to actvate "sheet2" as active sheet. is it possible to do it thru api
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Not directly.

The closest "hacks" I've seen are:

1. Do a Document.ShowElements( TargetView.Elements)

This makes the application look for the best view to show the given elements in. It's definitely not foolproof.

2. Print the given view to some kind of null printer (when you print it it becomes active). Or if you would prefer to deforest the amazon, go ahead and print a piece of paper :).

-Matt
Message 3 of 3
Anonymous
in reply to: Anonymous

thanks Matt,

Your tips helped me to solve the issue


Rgds
Shyam

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community