Autocad command to select entities

Autocad command to select entities

Anonymous
Not applicable
1,061 Views
8 Replies
Message 1 of 9

Autocad command to select entities

Anonymous
Not applicable
Hello,



what is command to select entities? That means clicking on a an entity calls a special autocad command, which is it?


I want to call it with acedCommand().



with kind regards,

Robert
0 Likes
1,062 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
Robert- írta:

> Hello,
>
> what is command to select entities? That means clicking on a an entity
> calls a special autocad command, which is it?
> I want to call it with acedCommand().
>
> with kind regards,
> Robert
select
0 Likes
Message 3 of 9

Anonymous
Not applicable
"select" doesn´t show the grips. Is there another command?
0 Likes
Message 4 of 9

Anonymous
Not applicable
Robert- írta:
> "select" doesn´t show the grips. Is there another command?

without commands:

void select()
{
ads_name l_selection_set;
acedSSAdd(NULL, NULL, l_selection_set;

for (......)
{
...
acedSSAdd(l_entity_name, l_selection_set, l_selection_set);
...
}

acedSSSetFirst(l_selection_set, l_selection_set);
acedSSFree(l_selection_set);
}
0 Likes
Message 5 of 9

Anonymous
Not applicable
acedSSSetFirst returns always -5001, that means Error.
What´s wrong? I give acedSSSetFirst only a selection set with one entity inside.
0 Likes
Message 6 of 9

Anonymous
Not applicable
Robert- írta:

> acedSSSetFirst returns always -5001, that means Error.
> What´s wrong? I give acedSSSetFirst only a selection set with one entity
> inside.

It works for me. Copy and paste the code fragment you use.

0 Likes
Message 7 of 9

Anonymous
Not applicable
I use this code to test it:

There is one entity on layer "0";


ads_name SelName;

struct resbuf *filter;

filter = acutBuildList(8, "0", RTNONE);

acedSSGet("X", NULL, NULL, filter, SelName);

long len;

acedSSLength(SelName, &len);

int a = acedSSSetFirst(SelName, SelName);


"len" is one, so creating the selection set should be done successful.


Thanks for your help.
0 Likes
Message 8 of 9

Anonymous
Not applicable
Robert- írta:

> I use this code to test it:
> There is one entity on layer "0";
>
> ads_name SelName;
> struct resbuf *filter;
> filter = acutBuildList(8, "0", RTNONE);
> acedSSGet("X", NULL, NULL, filter, SelName);
> long len;
> acedSSLength(SelName, &len);
> int a = acedSSSetFirst(SelName, SelName);
>
> "len" is one, so creating the selection set should be done successful.
>
> Thanks for your help.
addCommand - ACRX_CMD_USEPICKSET set?

As I sad that piece of code works in our app.
0 Likes
Message 9 of 9

Anonymous
Not applicable
Yes, it is set.
0 Likes