If you mean the cross-section is not rectangular, it just becomes an integration problem from the definition.
You can get some section properties via AutoCAD- draw the shape, change it into a "Region" (if I remember right), move it so the centroid is at 0,0, then check properties of the region. I'd prefer the direct route.