The xpxConvertModelsWithParametersEx() function can be called from a query in the same way as calling a function, i.e., after the conversion is finished the result (the converted model) is ready to be used in the calling query. All other xpxConvertModel . . . functions invoked from a query will be set in a XPX convertModel queue, i.e., the conversion execution will not start before the calling query is finished.
The xpxConvertModelsWithParametersEx() functions cannot be nested. When the option USE_EXISTING_MODEL is used, an open write transaction on the target model must be started before the xpxConvertModelsWithParametersEx() is invoked.
xpxConvertModelsWithParametersEx
FUNCTION xpxConvertModelsWithParametersEx (sourceModelsName, mapSchemaName : STRING; targetModelName : STRING; declarationsToLog : STRING; logFile : STRING; maxLogFileSize : INTEGER; userOutputFile : STRING; options : INTEGER; VAR targetModelId : GENERIC; VAR userDefinedStatus : INTEGER; VAR numberOfErrors : INTEGER; numberOfUserParameters : INTEGER; userPar1,userPar2, ... userParN : GENERIC ) status : INTEGER;
Hans Karsten