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

end acedSSGet

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
261 Views, 6 Replies

end acedSSGet

hi In my application I am providing select entities command button on dialog box.

User will select entities by clicking on select button and on OK button click i am processing the entities selected by user.
For this i am using acedSSGet selection set API.

When user click on OK command button i want to end the acedSSGet and process the user selected entities from selection set.

we can end selection using mouse right click. But i want to achive this programaticaly.

I tried using
keybd_event(VK_RBUTTON, 0, 0, 0); on OnOK command button event.

but with this the acedSSGet is not ending and the select entity command remain active. and the selection set is empty only.

Please let me know how to do this?

Thanks in advance!

Best regards,
Santosh
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

Hi, santosh!
You wrote :
[Sorry, skipped]
s> we can end selection using mouse right click. But i want to achive this
s> programaticaly.
[Sorry, skipped]

Try this code in OnOK method:
=========Beginning of the citation==============
Adesk::Boolean acedPostCommand(const char *cname);
acedPostCommand("\n"); // Send Return botton
=========The end of the citation================

Best Regards,
Alexander Rivilis.
Message 3 of 7
Anonymous
in reply to: Anonymous

hi Alexander,

thanks for reply!
I tried solution provided by you.
But it is not working.
acedPostCommand("\n"); // Send Return botton
is getting executed only after onOK event handeler function execution.

So still i am not getting entities in the selectionset.

Best regards,
Santosh
Message 4 of 7
Anonymous
in reply to: Anonymous

As i uderstand you have your dialogbox open (modeless) and let the user to
pick some objects.
If the user picks objets you dont need the window to be shown, so you could
hide it
and show it again if the user is ready with picking (pressed return or right
mouse button).

Regards
Rex


schrieb im Newsbeitrag news:5059856@discussion.autodesk.com...
hi In my application I am providing select entities command button on dialog
box.

User will select entities by clicking on select button and on OK button
click i am processing the entities selected by user.
For this i am using acedSSGet selection set API.

When user click on OK command button i want to end the acedSSGet and process
the user selected entities from selection set.

we can end selection using mouse right click. But i want to achive this
programaticaly.

I tried using
keybd_event(VK_RBUTTON, 0, 0, 0); on OnOK command button event.

but with this the acedSSGet is not ending and the select entity command
remain active. and the selection set is empty only.

Please let me know how to do this?

Thanks in advance!

Best regards,
Santosh
Message 5 of 7
Anonymous
in reply to: Anonymous

hi Rex,

Thanks for your reply.

Is'nt it possible to end the selection programatically and without user pressing right mouse button?

Thanks!
-Santosh
Message 6 of 7
Anonymous
in reply to: Anonymous

Hi Santosh
Can you please contact v_jaya_m@yahoo.com

thanks
Message 7 of 7
Anonymous
in reply to: Anonymous

Hi Santosh,

Please send null commnd using "sendStringToExecute" and it will probably fix your problem

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

Post to forums  

Autodesk Design & Make Report

”Boost