Files
cbb-refresh-verify-795/tools/probe_pi_members.py
T
阿白叔 11a2b2e46e Import CBB refresh verify r4 stability baseline
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.
2026-09-29 15:05:20 +08:00

14 lines
541 B
Python

from pathlib import Path
import win32com.client
import json
app = win32com.client.GetActiveObject('MGCPCB.Application')
pi = app.ActiveDocument.ProjectIntegration
info = pi._oleobj_.GetTypeInfo()
attr = info.GetTypeAttr()
members=[]
for n in range(attr.cFuncs):
desc=info.GetFuncDesc(n)
names=info.GetNames(desc.memid)
members.append({'names':names,'description':str(desc),'docs':info.GetDocumentation(desc.memid)})
Path(__file__).with_suffix('.json').write_text(json.dumps(members,ensure_ascii=False,indent=2),encoding='utf-8')