Event for Sheet Change?

I'm sure I'm missing something, but I can't find an event that fires when the user changes sheets in a drawing document.

I've tried some suspects:

 

RegenPostNotify

UserSelectionPostNotify

ViewNewNotify2

but no success. Any suggestions?

Thanks in advance,

-Jason S.

SolidworksApi macros
Answers 4
MM
MM 2013-10-10 Best Answer

There is ActivateSheetPreNotify & ActivateSheetPostNofify but their arguments require the name of the sheet being activated.

Don't know if this helps.

KR
KR 2013-10-10

ActivateSheetPreNofify and ActivateSheetPostNofify will work. See attached example. That SheetName argument is actually output to you by the delegate. So when the sheet changes, you can determine the name of the newly activated sheet.

Keith

SolidWorks API Training

JS
JS 2013-10-10

Matt-

Thanks! Haven't fully dug it out, but it looks like I couldn't find it because these events were introduced in 2013 and I'm programming in 2012. Time to upgrade...

Thanks again,

-Jason S.

JS
JS 2013-10-10

Keith-

Thanks too...our posts must have crossed.

-Jason S.