The local cell library can specify and open a pcb file.
But, your code has one mistake.
The OpenDatabase method needs to specify the full path of a pcb file.
Set cellDB = cellEditorObj.OpenDatabase(doc.FullName, True)
Please change and check.
Yes, you are right. When I specified a full name, the script completed successfully. However, with method #2 only (Set cellEditorObj = doc.CellEditor still generates an error).
Thank you veru much.
1 of 1 people found this helpful
An OpenDatabase method can’t be used when using the CellEditor method of a document object.
You need to get a database with an ActiveDatabase property.
Set cellEditorObj = doc.CellEditor
Set cellDB = cellEditorObj.ActiveDatabase
cellEditorObj.Visible = False
For Each cell In cellDB.Partitions.Item(1).Cells
This post is a bit dusty, but I have a similar problem. I got a full Xpedition project that I was able to open. However, I don't have access to the local library.
How can I set up an account for it to transfer the symbols and footprints to my Central Library?
I think we need more info to understand your problem fully. This thread is about getting access to the PCB specific cell database, and that question has been answered. Can you give us the full picture please ?
Well, I got a zip-file of an Expedition project which wasn't designed on our system. We want to modify the schematic and after packaging also the layout. Since all symbols and cells are not from our central library there are (in my opinion) two alternatives to do this:
1. I create all symbols and cells by myself and put them in the CL or
2. There is a possibility to copy these symbols and cells to our CL.
Of course the last option would be really great.
However, if there is a script available to do this, how I have to implement it to make use of it?
Are there really no one who can help?
Hi Kurt - I am on holidays, so I'll keep this short.
#1 - It may confuse people that you are hijacking an existing thread instead of creating your own. As an example, I received a notification about your post from april 8th, went here and noticed that the discussion is marked as 'Answered' - so I didn't scroll down, since the issue was solved.
#2 - You could use Library Services to transfer the cells from the PCB database to the Central Library, (look in the documentation for Library Manager), no need for a script.
If you still need a scripted solution (if you have many designs you want to do this for), then please create a new thread, to avoid confusion.
#3 - If you need help to use Library Services, start by searching for Library Services on Support Center (Articles), I found quite a few links to TechNote Articles.
Well, thank you for your information.
In post 5 you wrote: "...Can you give us the full picture please ?", therefore I tried to do this.
If you had just written the first paragraph (#1) in post 8, then I would not have continued writing here and would have opened a new post.
Have a nice holiday.