« Family Instance Room Phase | Main | Updating the Wall Compound Layer Structure »

February 29, 2012

Comments

Salve Jeremy,

I would call it OnDocumentSwitched() ;-)

My humble contribution:
Switching between Documents happens only if

e.PreviousActiveView.PathName != e.CurrentActiveView.PathName

Otherwise it is just switching between Views.


Cheers,
Rudolf

Salve Rudolf,

Yes, good catch and good contribution. Thank you!

Cheers, Jeremy.

Hi Jeremy
What if i want to close previous view, when new one get activated. i tried vPrevious.Document.Close(). throws invalid operation exception. closed temporarily disabled.
how we can close view.

thanks
Nav

Regarding ViewActivated event, apparently this is not called when user activates a viewport in a sheet, thus changing the ActiveView. Is there any way around this to know when user has activated a viewport? Thanks.

Dear Michael,

Sorry, nope, there is currently no event for that.

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource