How to log variables and read files with user specified variables?


Product(s):Cube
Version(s):6.1 to 6.5
Area:Other

When users building a model, we calculate some values in one program, say NETWORK and we would like to use these values in other programs after this NETWORK, this can be achieved by logging the variables. Once logged, the variables can be retrieved and used for other calculation in a different Cube program.

Another frequent practice in model design is to provide user defined parameters and/or arrays. We can achieve it by catalog keys. In this sample cata

Solution

Cube provides flexibility in model setup. The attached sample catalog just demonstrate some basic approaches to deal with the user defined parameters and arrays. Hopefully, it gives you some ideas for your own model and again feel free to modify/change any of the scripts for practice!

Discussions:

 
       


     After the adjustment, we get:


       

The script will read in the path node sequence and then in the LINKMERGE Phase, we output the link distance of each link in this path to an external file.

communities.bentley.com/.../userDefVars.zip