Hello,
The sample under "samples\dotNet\EllipseJig" in the ObjectARX folder should provide a starting point. If you have any specific issues while implementing it for a rectangle, please provide the sample code.
Balaji
Developer Technical Services
Autodesk Developer Network