Thanks for this script.
But I would like to find a script for DXdesigner.
For the list of hanging nets to show up, enable drc-108 and set its value as Error.
For un-connected pins, enable drc-107, set value as you want.
For invalid netnames, play with drc-102
For invalid symbol name, play with drc-104.
My own case
1. with drc-104 enable as well as drc-102, with the exact same name, say TX_DISABLE[4:1], it's ok for the net, but it's flagged with error for "invalid name format" (drc-104) for all portin.1, portout.1, in.1, in_rev.1, out.1, out_rev.1 (on/offsheets)
2. as up to now, I cannot find a way to verify name (as well as connectivity) between schematic sheets and the local block symbol.