For example: You want to change a ball valve into gate valve, just click "replace mode". but if you want to ball valve drain into gate valve drain, probably it won't work. At this moment, you may disconnect the pipeline with the drain, then click "replace mode", it will works. it also work when some valves can not be replaced.