RemoveUnused [component manager]

Removes components that are not used in the design.

Command: Project->Remove Unused Definitions is similar but operates slightly different and does not record script commands.

Syntax: RemoveUnused()

Return Value: <bool> True if one or more components are removed.

Parameters: None

VB Example:

Dim removedDefs

removedDefs = oComponentManager.RemoveUnused()

Note:

The order of calls to RemoveUnused is significant. As a result, removing definitions in an unordered fashion may cause other components 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 Manager Remove script.

 

Python Syntax RemoveUnused()
Python Example

removedDefs = oComponentManager.RemoveUnused()