PATHLENGTH Function

Returns the length of the path that is defined in the specified Geometry section.

Version Information

Version Added: Visio 2010

Syntax

PATHLENGTH(section[,segment]**)

Parameters

Name

Required/Optional

Data Type

Description

section

Required

String

The Geometry section that represents the path, specified by a reference to its Path cell (for example, Geometry1.Path).

segment

Optional

Integer

The 1-based segment of the path to measure.

Return Value

Double

Remarks

If section or segment does not exist, Microsoft Visio returns #REF!.

If you include a segment value, PATHLENGTH returns the length of that segment only.