Do GetObject() twice

How can I do GetObject() twice?

If I do like above , it only executes first GetObject() .
Can someone post a simple example how to do it.Thanks!!!

You probably need to deselect (in code) the first object after it was selected. Now the second GetObject immediately completes with the object that is still selected after the first GetObject.

Hi @wayne387315,

Herre is a sample that uses two CRhinoGetObject objects.

Note these two lines used by the second picker:

go1.EnablePreSelect(FALSE, TRUE);

Does this help?

– Dale

Thanks! It helps a lot.