WaterGEMS V8i (SELECT series 6) 08.11.06.113 64-bit
When I Import a pipe shape file with Model Builder it is changing the pipes in my current scenario. The active scenario is set as the Base scenario with associated alternatives for Base Active Topology and Base Physical, etc. The Model Builder is importing a child scenario and creating the associated alternatives for topology and physical as I specified; however, it is also changing some pipes in the current scenario as well. What am I missing? I've synchronized the database before starting.
Model Builder settings:
x Create nodes if none found at pipe endpoint
x Establish connectivity using spatial data I've tried (1 ft, 5, 10, 11, 15, 20, 25, ft) --- regardless, it shouldn't change my base scenario (?)
x Add objects to destination if present in source
x Update existing objects in destination if present in source
x create referenced object automatically
New Child Scenario
Key Field: GIS-ID
x if several elements share the same GIS-ID, then apply updates to all
x When removing objects from destination if missing from source only remove objects that have a GIS-ID
Table Type: Pipe
Key Fields "FacilityID" "GIS-ID"
all fields needed are linked to a property
xCreate a selection -set with elements added
xCreate a selection-set with elements modified
xOnly show a subset of messages when synchronizing
Hello Paula,
Please note that elements are common between all the scenarios, unless you are making some inactive in any particular scenario.
Meaning elements added in one scenario, will be present in another scenario as well.
When you are adding pipes in the model, it will not update the existing pipes, unless they are having same co-ordinates.
So when you say, it is changing pipes in the base scenario, in that case the pipes you are importing through shapefiles might have the same spatial information as the pipes in the model.
Did you apply that pipe shapefile as the background layer, to check the location of the new pipes, or to see if they are overwriting the existing pipes?
Did you try to look at the whole model by doing zoom extents, after adding the pipes through Modelbuilder?
For testing, I added a pipe shapefile in the existing model, it didn’t update the pipes in the existing model, but the added pipes were there in all the scenarios.
Here is the technote about updating model with Modelbuilder, for your reference.
http://communities.bentley.com/Products/Hydraulics___Hydrology/w/Hydraulics_and_Hydrology__Wiki/updating-a-model-using-model-builder
If you want you can upload your model file and the shapefile, for our testing.
There are two options for sharing your model on Communities, whichever you choose please be sure to zip your files first. The first option is to attach the zip file containing your model to your reply on the forum using the Advanced Reply Editor (you'll find the link below and to the right of the reply box). If your data is confidential please use the instructions in the link below to send it via Bentley Sharefile. Files uploaded to Sharefile can only be viewed by Bentley employees. Please be sure to reply on this thread with the name of the file after it has been uploaded.
http://communities.bentley.com/help/w/be_communities_help/7079.be-communities-secure-file-upload
If you upload the files to Sharefile, please post here with the name of the files so that we know they are available.
Regards,
Sushma Choure
Bentley Technical Suppport
The shapefile of pipes that you are importing into the existing model, contains the pipes that are already present in the model, which means that you are updating the model with more information and pipes.
Below is the picture of the shapefile of pipes which i applied in the background and the model , which shows that the pipes in the shepefiles are already present in the model, so when you are importing them, it is modifying the existing model pipes as well.
To see the elements added in the model, please change the scenario to newly created by Modelbuilder. After adding the shapefile through Modelbuiler, model gets updated with the new pipes along with the existing pipes.
I did some testing with your model, what happens is there are initially 18269 pipes in the model, after adding the pipes shapefiles the number of pipes become 35869, meaning the pipes are added in all the scenarios, not replaced with the existing ones. If you take a closer look at the model, after the Modelbuilder run, you will find two parallel pipes, not a single one. Please display inactive topology option for this through Tools>Options and give specific color to differentiate.
However, when you create a new child scenario through Modelbuilder, the newly added pipes become inactive in all old scenarios and active only in child scenario created by Modelbuilder.
But in the new child scenario, all the pipes including old and newly created pipes are active, please note that Modelbuilder only creates the child active topology alternative not the physical topology alternative.
So what can be done is, before adding the pipes through Modelbuilder, create a selection set of old pipes and then import the pipes through Modelbuilder.
When you have imported the additional pipes, please make the old pipes inactive in the new child scenario by selecting the old pipes selection set and make a group edit to make them inactive. Also new selection set of elements added via Modelbuilder is created, which is a good way to differentiate the existing and newly added pipes.
Please let us know, if this workaround is suitable for you.