"Rail Sweep" is available. To use it for this purpose:
1. Draw a rectangle representing a cross section of the brick ledge, and relocate its Reference Point to one of its corners.
2. Trace the outside of a wall with a Polyline and change its Z position to where you want the ledge.
3. Activate Rail Sweep; click the rectangle; click the Polyline. The rectangular profile will be "swept" along the Polyline path, with its Reference Point lying on the path. If the result isn't what you want, the surest fix is to Undo the Sweep, edit the profile, and sweep it again.