LOC Function (VisioShapeSheet)
Last modified: March 09, 2015
Applies to: Office 2013 | Visio 2013
In this article
Syntax
Remarks
Example
Takes a point defined in one shape's local coordinates and returns the equivalent point expressed in the local coordinates of the shape associated with the formula.
LOC(PNT(Sheet.5!LocPinX, Sheet.5!LocPinY))
In this expression, PNT converts a set of local coordinates in Sheet.5 to a point. (Sheet.5 is another shape on the same drawing page.) LOC then converts that point to an equivalent point in the current shape's local coordinate system, relative to the lower-left corner of the selection rectangle of the current shape.
The 5 in Sheet.5 is the ID number for the shape, which is displayed in the Shape Name dialog box ( Developer tab).