You can modify the roof and floor lines of a curtain wall to create a non-rectangular curtain wall:
Modifying the roof line of a curtain wall
Modifying the floor line of a curtain wall
You can also create non-rectangular roof and floor conditions by projecting to polylines.
AutoCAD Architecture 2022 toolset offers multiple methods of editing roof lines and floor lines. You may want to begin by graphically creating a custom roof line or floor line condition. You can then fine-tune that condition by specifying precise values in the Roof/Floor Line worksheet on the Properties palette.