What is the API intended for? If this is to produce a designline based on the itms laid out, there is a command REVDESIGN that does this.