Expedition PCB: Retrieve nested cells information on PCB by Automation

Document created by nick_hong on Mar 12, 2012Last modified by nick_hong on Mar 12, 2012
Version 2Show Document
  • View in full screen mode

This script is to get nested cells information that can be used in BOM or other manufacturing purpose.


PCB Automation does not have capability to find the child component that is nested inside a component. But, Component.IsNested is available to know the parent if the component is nested inside another component.


Attached script collects nested component information by starting from cells collection, gets components collection that uses each cell, and then find nested information.


The result will be displayed to a dialog as below. (If there are two or more nested cells, they will be listed in the dialog)




This script is not officially supported, so please use at your own risk.

' DISCLAIMER OF WARRANTY:  Unless otherwise agreed in writing,
' Mentor Graphics software and associated files are provided "as is"
' and without warranty.  Mentor Graphics has no obligation to support
' or otherwise maintain software.  Mentor Graphics makes no warranties,
' express or implied with respect to software including any warranty
' of merchantability or fitness for a particular purpose.
' LIMITATION OF LIABILITY: Mentor Graphics is not liable for any property
' damage, personal injury, loss of profits, interruption of business, or for
' any other special, consequential or incidental damages, however caused,
' whether for breach of warranty, contract, tort (including negligence),
' strict liability or otherwise. In no event shall Mentor Graphics'
' liability exceed the amount paid for the product giving rise to the claim.