.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Calling rotate with a SelectionSet

1 REPLY 1
Reply
Message 1 of 2
dshKSS
365 Views, 1 Reply

Calling rotate with a SelectionSet

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?

 

1 REPLY 1
Message 2 of 2
norman.yuan
in reply to: dshKSS

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost