Navigation: Scripting Reference Manual > Functions & Subroutines > SetConfigVariable

 

SetConfigVariable

 

Contact Us: fredsupport@photonengr.com

 

Description

This command sets the parameter values for an existing configuration variable.

 

 

Syntax

SetConfigVariable varIndex, tConfigVar

 

 

Parameters

varIndex As Long

Index of the configuration variable being modified.

 

tConfigVar As T_CONFIGURATION

Data structure defining the parameter values for the configuration variable at varIndex.

 

 

Example

The following script retrieves an existing configuration variable from the document, modifies the configuration values and sends the modifications back to the configuration variable.

 

Sub Main

 

    Dim curConfig As Long

    Dim tConfig As T_CONFIGURATION

    GetConfigVariable 0, tConfig

    For curConfig = 0 To GetConfigCount()-1

        tConfig.values( curConfig ) = 10.0

    Next curConfig

    SetConfigVariable 0, tConfig

 

End Sub

 

 

See Also

Configuration Script Commands

T_CONFIGURATION

 

 

 

 

 

Copyright © Photon Engineering, LLC