I have overriden the rotate command to get a selection set and do something extra if it contains one of our custom objects.
However if it contains any standard autocad objects I want to recall the original autocad rotate command with a SelectionSet of these objects.
I know I can call the rotate command using:
acedCommandS(5005, __arglist("._ROTATE", 5005, "\\", 5000));
However this will call the rotate command from the start and ask for a new selection set. Is there a way to call this with my selection set?
I am not very sure I know exactly what you want, but sounds like you want a command applies different action to a set of selected entities, depending on one or more properties of the entities.
You might want to look into TransformOverrule that only applies to your "custom object" (assuming this "custom object" is an AutoCAD entity, otherwise you may not be able to do anything with .NET API). This way, the command Rotate (or any other command, for that matter) just acts normally, and your TransformOverrule will automatically take over when AutoCAD tries to rotate the targeting entity (your custom object) and transform it in however the way you want to.