Export (0) Print
Expand All
Expand Minimize

LOC Function (VisioShapeSheet)

Last modified: June 17, 2011

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(point)

Parameters

Name

Required/Optional

Data Type

Description

point

Required

String

A point defined in one shape's local coordinates.

Return Value

String

Local coordinates are measured from the lower-left corner of the shape's selection rectangle. Both shapes must be on the same page.

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).

Show:
© 2014 Microsoft