Quick Design of Economical Frames for Tapered Sections

Can anyone point me to a very useful reference on how to create an outside program that could be integrated into STAAD Pro to quickly design economical frames for tapered sections for PEB design? Thanks