Nice indeed, but when loading terminals which have no terminal number (but do have a terminal Id) the script fails to see them. It would be nice to have a possibility when making the drawing just to enter the information to what terminal box the terminals belong (X1, X2, X3 etc). The script will insert them following the order in which they are placed (Page, Column, Row). Than a auto-numbering option might number all the separate terminals (X1:1, X1:2, X1:3 etc, X2:1, X2:2, X2:3 etc, X3:1, X3:2, X3:3 etc).
When there are pre-defined terminals (e.g. X2:5), these ones will be frozen by default (kept while numbering the terminals). An option might be to renumber the whole terminal box, or defreeze separate terminals.
Another nice option might be to use the location field. When the "location"-field is empty it is similar to the "location" of the Folio. When the "location" field of the element defers from the location of the Folio, the terminal is an external terminal. The same is true for elements that are connected with. A terminal might be connected internal with a relay contact. Both the location filed of the terminal and the location field of the relay-contact are empty. This means that it is an internal connection. At the other side of the terminal we have a motor connected. The location field of the motor is "+Roof" and thus defers from the location of the terminal. His means that this connection is an External connection.
The motor might have a Function-description, like "Ventilator 1". This field might be used to fill out a "comment" field for use in the terminal box.
When there are two or more external connections, they might be added to the string, separated by a comma (e.g. Ventilatior 1, Ventilator 2).