Specifically, it is the UGII_PATDIR environment variable that needs to point to your patter file location.
Adding Formats has always been an ideal area to automate. By programming the pattern additions, matching attributes can be set at the same time, synchronized with master-models, as well as a host of other standard checks and balances.
-MikeN
SolidNX.com