If you have Xpresroute module, you could create the pin like you would a wire or pipe. You could then use the bend table command to extract the information about the flat pattern. This is from the help files:
Outputting Bend Information
The Bend Table command allows you to create an ASCII...