I would like to automatically derate certain components in a schematic using DelphiScript.
For example, say we have a 5V and 12V net in our schematic and some 16V capacitors on each of those nets. In order to derate the capacitors to 50%, I need to select only those that are connected to the 12V net and replace them with, for example, 25V capacitors.
(Note that we can't accomplish this through the "Find Similar Objects..." dialog because that considers only the characteristics of the component itself, not its implementation details. As projects get larger with multiple sheets and interdependent boards, even grouping components by net isn't enough to keep this from becoming tedious and error-prone.)
The Connectivity example script comes close to providing a full solution. Unfortunately, the comments indicate that a physical document is required in order to determine components' nets.
Is there a way to fetch component nets from a schematic alone? I don't see why that would be impossible, as the nets are defined in the schematic and the rat's nest is generated from the same.