The rule
Two rules share one sentence. Drainage and vent piping can't be drilled and tapped to make a connection to it, and cast-iron soil pipe can't be threaded.
Drilling and tapping is the shortcut people use to add a vent or a drain without cutting in a fitting: drill a hole in the pipe, cut threads in it, screw in a nipple. The code bans it on drain, waste, and vent pipe.
The right way is to cut the pipe and install a listed fitting, joined the way that pipe type calls for. Related rules cover saddles and tapped tees (310.1) and what screwed fittings are made of (310.8). The inspector and the city's adopted edition of the code have the final word.
On the job
- Adding a vent, a cleanout, or a small branch to an existing line means cutting in a fitting, not tapping the pipe.
- Don't cut threads into soil pipe. If you need a threaded connection off a cast-iron line, use a fitting made for that connection.
- On old work, a nipple screwed into the side of a drain or vent pipe is the tell. Plan to replace the section.
The inspector and your city's adopted edition have the final word.