Preserve tested Verify source, authoritative READY checks, bounded bridge retries, diagnostics and failure-only reporting. Include 336-test suite and packaging assets; exclude live Mentor samples, field logs, backups and distributions.
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
Option Explicit
|
|
Dim app, doc, pi, lic, token, fso, log, info, bar, ctl
|
|
Set fso = CreateObject("Scripting.FileSystemObject")
|
|
Set log = fso.CreateTextFile(WScript.Arguments(0), True)
|
|
Set app = GetObject(, "MGCPCB.Application")
|
|
Set doc = app.ActiveDocument
|
|
Set pi = doc.ProjectIntegration
|
|
log.WriteLine pi.ProjectFile
|
|
log.WriteLine "Forward: " & pi.ForwardAnnotationStatus & " Allowed=" & pi.IsForwardAnnotationAllowed
|
|
log.WriteLine "SynchCES: " & pi.SynchCESStatus & " Allowed=" & pi.IsSynchCESAllowed
|
|
log.WriteLine "LoadCES: " & pi.LoadCESStatus & " Allowed=" & pi.IsLoadCESAllowed
|
|
log.WriteLine "Back: " & pi.BackAnnotationStatus & " Allowed=" & pi.IsBackAnnotationAllowed
|
|
Set lic = CreateObject("MGCPCBAutomationLicensing.Application")
|
|
token = lic.GetToken(doc.Validate(0))
|
|
doc.Validate token
|
|
log.WriteLine "Licensed Forward Allowed=" & pi.IsForwardAnnotationAllowed
|
|
log.WriteLine "Open PI=" & app.Gui.ProcessCommand("Project Integration", False)
|
|
For Each bar In app.Gui.CommandBars
|
|
log.WriteLine "BAR " & bar.Name
|
|
For Each ctl In bar.Controls
|
|
log.WriteLine "CONTROL " & ctl.Caption & " ID=" & ctl.Id
|
|
Next
|
|
Next
|
|
log.Close
|