How to build a network from shape while there is NO A&B node information and get directions from the


Product(s):Cube
Version(s):6.1 to 6.5
Area:Data Manager


We learned how to use the Build Network from Shapefile tool (BNFS) here. However, on occasion there will be times where you have a network that has no A or B nodes. CUBE can create new origin and destination nodes. We will revisit the BNFS for this exercise. Download the ZIP data for this example.

Solution

1. If my shape file does NOT have A/B node field information, how do I create a .NET?
Open build network from shape window and check ‘Add new A and B fields’.


NOTE: In the \inputs\orgData, you can open the shape file and verify that there is NO A,B node information. Once you use this shape file to build a network, A and B node information will be added to the shape file. The altered set of inputs are stored in \inputs.

2. How can I get the original directions from shape file back to .NET file?

So if we have a line in Shape file, say 1001-1005 and the direction is from 1001 to 1005. In the .NET file, we will have two links, 1001-1005 and 1005-1001. We don’t know which link gives us the original direction as defined in the shape file.This can be done in one NETWORK program. Please refer to the attached catalog. At the end, you will have the following network below (myDir=1 means that its the original direction from the shape file).


communities.bentley.com/.../buildNetworkfromShape.zip