> In the process model I have declared a boolean variable, and in my UI
> I want to access that variable.
> To do that I have tried the code below but it doesn't work
> OleErrChk( TS_SeqFileGetProperty (gCurrentSequenceFile, &errorInfo,
> TS_SeqFileHasModel, CAVT_BOOL, &hasModel));
>
> if (hasModel){
> OleErrChk( TS_SeqFileGetModelSeqFile (gCurrentSequenceFile,
> &errorInfo, &modelDesc, &modelFile));
> CA_FreeMemory (modelDesc);
> OleErrChk(TS_SeqFileAsPropertyObject (modelFile, NULL,
> &modeFilePropObj));
> OleErrChk(TS_PropertyExists (modelSeqFile, NULL,
> "PopupErrorMessage", 0, &VarExists));
> }
If the variable you want to twiddle at run-time is a FileGlobal, the method
Execution.GetFileGlobals will return a reference to a proper
ty object of the
FileGlobals for the specified sequence file object. See the online docs.
I have not found a way to change run-time versions of other non-FileGlobal
variables yet.
HTH,
---
Joe