AnsweredAssumed Answered

Cell Editor Properties

Question asked by andrew_french on Aug 31, 2011
Latest reply on Oct 3, 2017 by phiet

Screen shot of the Cell Editor window and the Properties window of a specific cell from within Library Manager.  EE7.9.1

8-31-2011 9-32-02 AM.png

Through Automation I want to be able to change the "Verification Status."  I wrote the following code (C#) to try and find out more information on these properties but I'm not getting anything back so clearly I'm looking in the wrong place.  Any direction would be appreciated.

 

private void setVerified()

{

 

//Create handle to the cell editor using the library specified in the global variables section

CellEditorAddinLib.CellEditorDlg cellEd = new CellEditorAddinLib.CellEditorDlg();

CellEditorAddinLib.CellDB cellDB = cellEd.OpenDatabase(lib, false);

 

//Get the collection of partitions in the library and iterate through them

CellEditorAddinLib.Partitions partitions = cellDB.get_Partitions();

 

foreach (CellEditorAddinLib.Partition p in partitions)

{

 

     //Get the collection of cells in the current partition and iterate through them

     CellEditorAddinLib.Cells cells = p.get_Cells();

 

     foreach (CellEditorAddinLib.Cell c in cells)

     {

          CellEditorAddinLib.CellProperties cellprops = c.Properties;

 

          foreach (CellEditorAddinLib.CellProperty cellprop in cellprops)

          {

 

               MessageBox.Show(c.Name + " | " + cellprop.Name + " = " + cellprop.Value);

          }

     }

}

}

 

 

Outcomes