2.2.8.5.1 Text Block Coordinate System

A point on a text block 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 text block defines a coordinate system.

The TxtPinX and TxtPinY Cell_Type child elements of a ShapeSheet_Type element of a shape specify the pin of the text block in the coordinate system of the shape. The TxtLocPinX and TxtLocPinY Cell_Type child elements of a ShapeSheet_Type element of a shape specify the pin of the block in local coordinates.

A point on a text block specified in local coordinates can be converted into its associated shape coordinates by applying transformations in the following order:

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

  2. Subtract the value of the TxtLocPinY Cell_Type element from the y-coordinate.

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

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

  5. Rotate the point counterclockwise around the origin by the value of the TxtAngle Cell_Type element.

  6. Add the value of the TxtPinX Cell_Type element to the x-coordinate.

  7. Add the value of the TxtPinY Cell_Type element to the y-coordinate.