IDesign::GetBounds

 
void GetBounds(
              [out] long *left,
              [out] long *top,
              [out] long *right,
              [out] long *bottom,
);
 

Return Values

 
This property returns the bounding coordinates for the eXpress .
 

Remarks

 
The coordinates return provide the bounds by which relative positioning can be determined. All objects, net segments, etc. will occur within these bounds. Most often, it is useful to subtract the left and top from all other bounds to work with a design that begins at 0,0. One can then also scale all values using the following equation to obtain a normalized coordinate system:
 
normalized_x = (x - left) / (right - left) and
normalized_y = (y - top) / (bottom - top)
 
By converting from (x, y) to (normalized_x, normalize_y), the design can then be scaled to any desired size to match another environment.