Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: Using PRINTORGANIZER keyins as INITAPP

$
0
0

[quote user="Cathy Rust"]Can PRINTORGANIZER still be run as an INITAPP[/quote]

The best time to load a VBA macro is in the Application.OnProjectLoad event.  Is that what you mean by INITAPP? 

It's hard to debug this kind of event handler.  Put some debug statements in there in an attempt to pin down where it fails...

Sub OnProjectLoad()
    TraceKeyin  "mdl load bentley.printorganizer.dll"'    TraceKeyin  "PRINTORGANIZER DIALOG"
    TraceKeyin  "PRINTORGANIZER NEW"
    TraceKeyin  "PRINTORGANIZER PRINTERDRIVER pdf.pltcfg"
    TraceKeyin  "PRINTORGANIZER ADD FILE c:\cadfiles\model1.dgn"
    TraceKeyin  "PRINTORGANIZER ADD FILE c:\cadfiles\model2.dgn"
    TraceKeyin  "PRINTORGANIZER ADD FILE c:\cadfiles\model3.dgn"
    TraceKeyin  "PRINTORGANIZER SUBMITAS SINGLE"
    TraceKeyin  "PRINTORGANIZER PRINT ALL"
    TraceKeyin  "PRINTORGANIZER EXIT"
End Sub

Sub TraceKeyin (ByVal keyin As String)
  Debug.Print "About to send key-in " & keyin
  CadInputQueue.SendKeyin keyin
End Sub

Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>