A script-enabled browser is required for this page to function properly.

Managing Coordinate Objects

Coordinates (class Coordinate) are Forms objects which do not appear in the Form Builder. They can be treated like other Forms objects except in the way they are constructed and used.

Like Font objects, Coordinates are convenience objects which encapsulate the coordinate system attributes of a Form module. To obtain a Coordinate object for a given Form Module you must call the Coordinate constructor and pass the Form Module as an argument. After changing properties on the Coordinate object you must reapply it to the module. For example:


...
FormModule fmb = FormModule.open("myform.fmb");
Coordinate coord = new Coordinate(FMB);
// set the real units type to inches
coord.setRealUnit(JdapiTypes.REUN_INCH_CTID);
coord.apply(FMB);
// don't need the Coordinate object any more
coord.destroy(); 
fmb.save("myform.fmb");
...