AnsweredAssumed Answered

ViewChangeNotify Can not Fired

Question asked by Win Lai on Nov 14, 2018
Latest reply on Nov 15, 2018 by Win Lai

Dear Everybody,

I have a question about swModelView notify.I have create a SW api Project with SW2016 API SDK, and add ViewChangeNotify code(Hight light with red color) .

But it can not fired, can you tell me why?

 

thank you very much!

 

'Here is my VB.net code================================================

    Dim WithEvents iModelView As ModelView

 

    Function AttachEventHandlers() As Boolean

        AddHandler iModelView.RepaintNotify, AddressOf Me.ModelView_RepaintNotify

        AddHandler iModelView.ViewChangeNotify, AddressOf Me.ModelView_swViewChangeNotify

    End Function

 

 

    Function DetachEventHandlers() As Boolean

        RemoveHandler iModelView.RepaintNotify, AddressOf Me.ModelView_RepaintNotify

        RemoveHandler iModelView.ViewChangeNotify, AddressOf Me.ModelView_swViewChangeNotify

    End Function

 

    Function ModelView_RepaintNotify(ByVal repaintTYpe As Integer) As Integer

       'Fired Successful!

    End Function

 

 

    Function ModelView_swViewChangeNotify(ByVal View As Object) As Integer

       'can not fired

    End Function

'Here is my VB.net code================================================

Outcomes