# 2.2.4.16.16 GetGraphPoints::SetFollowData

## Description

Specifies whether point picking is restricted to only actual points on a specified plot index, actual points on any plot in the layer, or at arbitrary coordinates anywhere in the layer. It must be called prior to calling GetGraphPoints::GetPoints().

## Syntax

BOOL SetFollowData(BOOL bFollow, int nPlot = -1)

## Parameters

bFollow
[input] If true, actual point picking is restricted to only actual points in the specified plot index. If false, arbitrary coordinates anywhere the specified layer may be picked.
nPlot
[input] The plot index to pick from when bFollow is true. If set to -1, points on any plot in layer may be picked.

## Return

Returns true if successful.

## Examples

For an example of using this method, please see the Example Section in GetGraphPoints.