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

# OptisVRMerge

## Description

Merges several maps into a new map.

**Note:**

![OptisVRMerge equation](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/speos/speos-labs-automation/2025-r1/_assets/labvr_optisvrmerge.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=242e2abe3c067730ed3e86ea56e9e959)

Returns 1 if the call has succeeded, 0 otherwise.

## Syntax

*object*.OptisVRMerge(VARIANT\* *pInputListOptisVR*, BSTR *strOutputFileName*) As Int

* *object*: Virtual Reality Lab object

* *pInputListOptisVR*: tab including the absolute filename strings of all the Speos360 files to merge

* *strOutputFileName*: absolute filename string for the result of the merge operation

## Example

```vb theme={null}
Sub OptisVRMerge()
'Error Management
Dim Error As Integer
'Declare VRLab
Dim VirtualRealityLab As Object
Set VirtualRealityLab = CreateObject("HDRIViewer.Application")
'Definition of the Speos360 files to merge
Dim FileTab
ReDim FileTab(2)
FileTab(0) = "U:\AMT\API VRLab\InteriorCar1.speos360"
FileTab(1) = "U:\AMT\API VRLab\InteriorCar2.speos360"
'Execution of the merge operation
Error = VirtualRealityLab.OptisVRMerge(FileTab, "U:\AMT\API VRLab\InteriorCar_Merged.speos360")
MsgBox ("Files Merged")
End Sub

```
