Align object by script
I want to use the Align tool (in the Main Toolbar) by script. I tried to use only the transform information at the first time, but in some cases it's not worked. The Align tool works in every cases.
I searched a lot for script command to achieve the result of Align tool in the Main Toolbar, but there was no any opportunity.
So my question: How can i align one object to the other by script line? (position, orientation, etc.)