2.2.3.2.1 Coordinate System

A point on a Drawing Page or a Shape is specified by coordinates on a two-dimensional Cartesian plane, where the x-coordinate specifies the horizontal position and the y-coordinate specifies the vertical position.

Every Shape defines a local coordinate system. A point on a shape is specified either in its local coordinates or in the coordinate system of the shape’s Parent, depending on the N attribute of the Cell_Type element specifying this point.

A point specified in local coordinates can be converted into parent coordinates by applying the following transformations in the following order:

  1. Subtract the value of the LocPinX property of the Cell_Type element from the x-coordinate.

  2. Subtract the value of the LocPinY property of the Cell_Type from the y-coordinate.

  3. Mirror the point about the y-axis if the value of the FlipX property of the Cell_Type is equal to one.

  4. Mirror the point about the x-axis if the value of the FlipY property of the Cell_Type is equal to one.

  5. Rotate the point counterclockwise around the origin by the value of the Angle property of the Cell_Type.

  6. Add the value of the PinX Cell_Type to the x-coordinate.

  7. Add the value of the PinY Cell_Type to the y-coordinate.