Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Right now, I have code that allows the user to indicate on a map, which contains a Network Dataset layer, stops that are needed to create a route. I need to add functionality to the interface that allows the user to also create barriers as well as stops.

The way this is normally done in ArcMap is as follows:

  1. Create the route layer by clicking on Network Analyst and New Route
  2. Make the Network Analyst window visible
  3. Highlight the Restriction layer inside the Line Barriers layer
  4. Click on the button for Create Network Location Tool
  5. Draw the barrier on the map.

I already have implemented the ability to create stops by using ControlsNetworkAnalystCreateLocationToolClass().

My question is, how can I also implement the capability of creating barriers as well as stops into my code?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.