One additional point: this bug! (or is it a feature?) also happens when you try to loop through the pcbDoc.Cells Collection . Maybe the 'FindCell' just use this collection.
Effectivley this means ... after deleting a cell and saving the doc, the Cells Collection is not up to date!
...so I ask the community: "How to bring the Cells-Collection up to date, after manuel deleting a cell and saving the Document - without to re-open the Document?"
try going over each placed component and check their cellname:
Set Compcollection = pcbDocObj.components(epcbSelectPlaced,epcbCompAll,epcbCelltypeDrawing,"*") For Each component In Compcollection if (UCASE(component.cellname) = "MyDrawingcellname") Then FoundTopCell = true end if ... next
yeaah, this idea works.
Thank you very much.
One more question I have:
Is there a way to determine on which "sheet" the cell is placed, when it is placed?