Dim bBusy As Boolean
Dim counter As Long
Dim rejected As Long
Sub ConnPtAdjust(shp As Visio.Shape)
Dim start As Double
If bBusy Then
' Debug.Print "Reject event"
rejected = rejected + 1
Exit Sub
Else
rejected = 0
bBusy = True
start = Timer
counter = counter + 1
Debug.Print "Start time: ", start
While Timer - start < 1
DoEvents
Wend
Debug.Print "Executing now @", Timer, "repetition", counter, "Rejected events", rejected
actualRoutine shp
bBusy = False
End If
End Sub
Sub actualRoutine(shp As Visio.Shape)
' do stuff
End sub
QuoteEventXFMod=IF(User.Processing,SETF(GetRef(User.Processing),FALSE),SETF(GetRef(User.Processing),TRUE)+CALLTHIS("DoSomething"))
Sub DoSomething(shp As Visio.Shape)
Debug.Print "Do something that triggers EventXFMod..."
shp.Cells("Width").ResultIU = 2 * shp.Cells("Width").ResultIU
End Sub
Quote from: Nikolay on April 25, 2024, 01:07:44 AMIt requires that ".dll.config" if you use the Newtonsoft JSON (it overrides some old versions there).I have another much bigger Visio AddIn project that also uses Newtonsoft.Json and project settings (but not WebView2).
At least that's my assumption.
Quote from: Nikolay on April 25, 2024, 01:07:44 AMBTW Microsoft itself does not hesitate to charge for that $540 a year (via DigiCert)And we are stupid enough to publish solutions for MS products for free...