Scripting _-SelLast selects extra unwanted objects in C#

Hi,

I have noticed that scripting _-SelLast command after _-Import will select the imported objects, plus any other objects that have just been created through the code right before calling Import.

Is there a way to ensure that only the imported objects will be selected?

Thank you!

Hi Cristina,

Let me know if this helps.

https://github.com/dalefugier/SampleCsCommands/blob/master/SampleCsLastCreatedObjects.cs

– Dale

Hi Dale,

It works perfectly, thank you very much!

Cristina