How to compare two networks using a standalone script with _COMPARE variable?


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


Here
 we learned how to compare two different networks using a Network program template. For this exercise, we will look at the following NETWORK standalone script which compares two network files (original and modified). Please download the attached ZIP for the example.

Solution

In the LINKMERGE PHASE, the script achieves this by using the COMPARE statement, which is used to compare the link records of the two networks. The MERGE RECORD option has to be set to true so that the two sets of records are merged. The script also shows how to use the temporary variable _COMPARE to flag the links in the merged network. The meaning of the returned value is shown

Application Process:

OUTPUT FILE


MERGED NETWORK

communities.bentley.com/.../Example.zip