I had developed a program using vba. It was executed successfully in Microstation V8. But in Microstation v8i[Select series 1] - version 08.11.07.171, the same program doesn't work and there is no compile error/runtime error also. How to fix this? Kindly clarify.
The coding snippet is given below for your reference.
clsTrackZoom
Option ExplicitImplements IViewUpdateEventsPrivate Sub IViewUpdateEvents_AfterRedraw(TheViews() As View, TheModels() As ModelReference, ByVal DrawMode As MsdDrawingMode) updateZoomEnd SubPrivate Sub IViewUpdateEvents_BeforeRedraw(TheViews() As View, TheModels() As ModelReference, ByVal DrawMode As MsdDrawingMode)
End Sub
''------------------------------------------------------------------------------------------------------------
modMain
Public Sub RescaleAnnotation() Dim objc As clsTrackZoom Set objc = New clsTrackZoom AddViewUpdateEventsHandler objcEnd Sub
Public Function updateZoom() MsgBox "view updated"End Function
Hi Dharma,
it works on my computer with V8i (SELECTseries 2) and V8i (SELECTseries 3) Update 2 on Windows 8.1. Have no chance to test it with V8i (SELECTseries 1), it's too old so not installed.
I have several notes / requests:
Here is mvba I created and used for the testing:
view-update.mvba
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said: prepare mvba file and attach it to your post
Nice suggestion. I'll follow it in future.
Unknown said: what Windows and graphics card do you use?
Windows : XP operating system.
Graphics card device name : NVIDIA Quadro Fx 550
Unknown said:are there any other applications installed and active in your MicroStation environment?
No.
Unknown said:Here is mvba I created and used for the testing:
I tested that vba file. It has the same issue which I mentioned earlier.
Unknown said:It has the same issue which I mentioned earlier.
That's weird ... or a bug specific to V8i (SELECTseries 1). Hopefully somebody will be able to test mvba with this particular version to confirm the behaviour.
Regards,
Thanks Jan for your hint.
Unknown said:what Windows and graphics card do you use?
Based on your given hint, I tested the .mvba file in a system having a different graphic card. It works fine in Microstation select series-1 itself . Graphic card might be the problem.