Add duct, and lay out the duct run, as explained in Drawing a Duct Run.
Specify the point in the layout where you want to draw a duct run with a vertical slope.
In the Properties palette Routing Options Slope format and specify Slope.
Specify the end point for the sloped segment.
To turn off sloped layout and return to horizontal runs, under Routing Options, enter a slope of 0.
Continuing specifying points for the duct run geometry.
If you add a vertical segment at the end of a sloped segment, you may be prompted to choose a part. If a fitting with the proper angle does not exist, you can accept the creation of a custom transition.