RemoveUnused [footprint manager]

Removes footprints that are not used in the design.

UI Access Project > Remove Unused Definitions is similar but operates slightly different and does not record script commands.
Parameters None
Return Value Boolean; True if one or more footprints are removed.

 

Note:

The order of calls to RemoveUnused is significant. As a result, removing definitions in an unordered fashion may cause other footprints in dependent definitions to be rendered unusable.

Also, the symbol and footprint of an unused component are not unusable until after the component itself is removed using the Component ManagerRemove script.

Python Syntax RemoveUnused()
Python Example

oDefinitionManager = oProject.GetDefinitionManager()

oFootprintManager = oDefinitionManager.GetManager("Footprint")

removed = oFootprintManager.RemoveUnused()