SelLast in SDK C++

Is there anything like “SelLast” in the SDK?

Hi @Luciano_Luiz_da_Silv,

I don’t believe so. What are you looking to do?

Thanks,

– Dale

I created an object (pipe) with the script below:
strcpy(command, "-Pipe _SelId “);
strcat(command, uid1);
strcat(command, " “);
strcat(command, margvalue);
strcat(command,” _Enter _Enter”);
mbstowcs(ccx, command, 500);
RhinoApp().RunScript(0, ccx, 0);

I also created a script for selecting the last object created:
strcpy(command, "-SelLast “);
strcat(command, " _Enter”);
mbstowcs(ccx, command, 500);
RhinoApp().RunScript(0, ccx, 0);

Now I want to place this selected object (pipe) inside a variable…

Hi @Luciano_Luiz_da_Silv,

Maybe this SDK samples will give you a few ideas.

cmdSampleLastCreatedObjects.cpp

– Dale