Message 1 of 3
Executing VBA-routine from VB6

Not applicable
03-04-2001
04:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I am trying to run a VBA-routine in AutoCAD 2000, from VB6
The RunMacro command could be used, but the tricky part, is that I want VB6
to continue.
The RunMacro does not continue until the Macro has been finished.
AcadApp.RunMacro ("j:\cadserver\cadserver.dvb!OpenDwg.xxx")
Do
DoEvents
If Timer - AcadTime > ErrorWait# Then
ErrorMsg$ = "Error when running Macro-job in AutoCAD"
ErrorFlag% = 1
exit do
End If
Loop While Dir$(JobFile$) <> ""
Any suggestions to how I can trigger OpenDwg.xxx, and continue in VB6??
NOT 'sendcommand', because this requires an open drawing.
Kind regards
Michael Christoffersen
3DI
I am trying to run a VBA-routine in AutoCAD 2000, from VB6
The RunMacro command could be used, but the tricky part, is that I want VB6
to continue.
The RunMacro does not continue until the Macro has been finished.
AcadApp.RunMacro ("j:\cadserver\cadserver.dvb!OpenDwg.xxx")
Do
DoEvents
If Timer - AcadTime > ErrorWait# Then
ErrorMsg$ = "Error when running Macro-job in AutoCAD"
ErrorFlag% = 1
exit do
End If
Loop While Dir$(JobFile$) <> ""
Any suggestions to how I can trigger OpenDwg.xxx, and continue in VB6??
NOT 'sendcommand', because this requires an open drawing.
Kind regards
Michael Christoffersen
3DI