Installing a macerator in a detached bldg
I want to add a bathroom to my 2 story detached bldg, it has a 5 X 6' area that juts out from the main bldg. the floor is about 18 inches off the ground and is not insulated, wood construction, insulated on 3 sides, with siding. I have to go approx 29 feet to the house and under a sidewalk. I want to use a macerator toilet, and sink. My question is, the vent pipe would come out right next to the doorway into the 2nd floor. Can the vent pipe be angled and run on the outside of the bldg so it conforms to the required distance from an opening and still goes past roof line. Plus for the pipe to go into the main pipe under the house it would have to go another 20 feet. Another question, if the pipe runs underground but then enters through the block foundation of the house, can it angle upwards to meet the main pipe going out of the house to the city sewer? Trying to figure all this out before I attempt anything here in Sussex cty Delaware