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.
11 lines
366 B
Plaintext
11 lines
366 B
Plaintext
Option Explicit
|
|
Dim app, doc, lic, token
|
|
Set app = GetObject(, "MGCPCB.Application")
|
|
Set doc = app.ActiveDocument
|
|
If InStr(LCase(doc.ProjectIntegration.ProjectFile), "\build\background-fixture\") = 0 Then WScript.Quit 2
|
|
Set lic = CreateObject("MGCPCBAutomationLicensing.Application")
|
|
token = lic.GetToken(doc.Validate(0))
|
|
doc.Validate token
|
|
doc.Close False
|
|
app.Quit
|