SelID for multiple objects

I am trying to implement in C# a command that performs selection like SelID, but for multiple objects. It works fine when I run it like this: _MyCommand guid1,guid2 But it doesn’t work when I run it inside another command, for example: _-Join _MyCommand guid1,guid2 _EnterEnd. I am using [CommandStyle(Style.Transparent)] and doc.Objects.Select(idsList). Any suggestions?

Hi @Fernando_Fonseca_Aco,

The Join command only allows for a single object selection when post picking. This is why you see the “Cannot use these objects. Removing them from selection.” message.

Something like this, which pre-selects, probably works:

_MyCommand guid1 guid2 _Enter _Join

– Dale

Thanks @dale

You are right.

The Join command have 2 selection times.

Then:

_Join _MyCommand guid1 _MyCommand guid1 _Enter

works too.