N
Nikolay Klinachyov
I have test procedure (see below)
The time of execution of a cycle is increased for each next i
How to deactivate redrawing the document after each ActivePage.Drop?
But I should see the drawing process.
Public Sub test()
drawingDoc = K2.AxDrawingControl1.Document
vsoApp = drawingDoc.Application
stencilDoc = vsoApp.Documents("SimLib.vss")
Dim shpBlock As Visio.Shape
Dim i As Integer
For i = 0 To 200
shpBlock = vsoApp.ActivePage.Drop( _
stencilDoc.Masters("gain"), 0, 0)
shpBlock.CellsSRC(visSectionObject, visRowXFormOut, _
visXFormPinX).Formula = i * 0.125 & "cm"
shpBlock.CellsSRC(visSectionObject, visRowXFormOut, _
visXFormPinY).Formula = i * 0.25 & "cm"
System.Windows.Forms.Application.DoEvents()
Next i
End Sub
The time of execution of a cycle is increased for each next i
How to deactivate redrawing the document after each ActivePage.Drop?
But I should see the drawing process.
Public Sub test()
drawingDoc = K2.AxDrawingControl1.Document
vsoApp = drawingDoc.Application
stencilDoc = vsoApp.Documents("SimLib.vss")
Dim shpBlock As Visio.Shape
Dim i As Integer
For i = 0 To 200
shpBlock = vsoApp.ActivePage.Drop( _
stencilDoc.Masters("gain"), 0, 0)
shpBlock.CellsSRC(visSectionObject, visRowXFormOut, _
visXFormPinX).Formula = i * 0.125 & "cm"
shpBlock.CellsSRC(visSectionObject, visRowXFormOut, _
visXFormPinY).Formula = i * 0.25 & "cm"
System.Windows.Forms.Application.DoEvents()
Next i
End Sub