CATIA includes two sample programs (I think they are macros) that are used to create drawing borders based on the paper size. These are intended to be used as examples for the CATIA Administrator to create similar programs based on their companies' drawing frames.
Paper size is determined when a new drawing is created, and can be modified with the File + PageSetup menu. If the drawing size is changed, the macro must be run to create a new border.
There are several other methods for handling this.