How to convert line into structural member

How to convert line into structural member through API

Standard: ISo

type:Angle Iron

size:20x 20 x3

Regards

K.C

SolidworksApi macros