> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SurfacePolylineExportSpectrum

## Description

Exports the spectrum data of a measurement polyline to a spectrum file. Returns TRUE if the call has succeeded, FALSE otherwise.

## Syntax

* `object.SurfacePolylineExportSpectrum(VARIANT* vPtX, VARIANT* vPtY, BSTR bstrFileName)` as Boolean
* *object*: Virtual Human Vision Lab
* *vPtX*: array of VARIANT for the horizontal coordinate of each vertex of the polyline
* *vPtY*: array of VARIANT for the vertical coordinate of each vertex of the polyline
* *bstrFileName*: path and filename of the spectrum (.spectrum, .spe) file

## VB script example

```VB theme={null}
Creates VisionLabViewer COM server
set VisionLabViewer = CreateObject("VisionLabViewer.application")
' Opens XMP file
VisionLabViewer.OpenFile("C:\Example.xmp")
' Exports spectrum into SPE file
vPtx = array(-0.3, 0.3, 0.3, -0.3)
vPty = array(-0.3, -0.3, 0.3, 0.3)
VisionLabViewer.SurfacePolylineExportSpectrum(vPtx, vPty, "C:\Example.spe")
```
