AnsweredAssumed Answered

How to get access to local cell library within ExpeditionPCB?

Question asked by olsmir on Nov 17, 2013
Latest reply on Apr 12, 2019 by ati-phy

Hi all,


Can anybody explain how to get access to local cell library within PCB project in ExpeditionPCB ?

I have written the following script for the opened PCB in ExpeditionPCB:


Set app = GetObject(, "MGCPCB.Application")

Call Scripting.AddTypeLibrary("MGCPCB.Application")


Set doc = GetLicensedDoc(app)


'Set cellEditorObj = doc.CellEditor                                                    'method #1
Set cellEditorObj = CreateObject("CellEditorAddin.CellEditorDlg")       'method #2
Scripting.AddTypeLibrary ("CellEditorAddin.CellEditorDlg")
Set cellDB = cellEditorObj.OpenDatabase(, True)  ' The script outputs an error on this line
cellEditorObj.Visible = False


Call Scripting.AddTypeLibrary("MGCPCB.Application")


For Each cell In cellDB.Partitions.Item(1).Cells


This script outputs the following error on the above line, when using any of 2 methods:

- method #1: "Cannot open external database"

- method #2: "Cannot open database"






And can I get access to the cell library referenced by CEL file only?

For example, I have copied a part of PCB using Circuit Move And Copy command in ExpeditionPCB. As a result, \mgc_icc_clipboard have been created having CellDB.cel file.

Can I get access to this file using Automation?