The rotate command prompts for multiple objects,
so you must terminate object selection with an empty
string first, before you supply the basepoint:
Command("._ROTATE", square, "", basepoint, ...);
Also remember that you must provide all input to the
command, you can't leave it in progress when your
own registered command handler terminates.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
wrote in message news:5412292@discussion.autodesk.com...
Hi Tony,
I am still fighting this issue. By looking at other threads in this forum,
I have found and implemented your code at http://www.caddzone.com/CommandLine.cs
I have created a method in order to rotate the entity.
public static int RotateSquare(ObjectId square, Point3d basepoint)
{
//return Command("._ROTATE", square, basepoint);
return Command("._ROTATE", square, basepoint, "");
}
When I execute it, Acad 2007 has correctly selected the object to rotate, but still
prompts me to specify the base point about which to rotate the object.
Do you know how I could resolve this ?
Thanks in advance
j.