Hi,
acedSSGetFirst is used to create a pickfirst set. Entity in pickfirst set
are gripped.
I always call acedSSGetFirst(NULL,NULL) before any valid acedSSGetFirst
calling. I got this idea from previous posts in this newsgroup and i don't
know the reason.
Maybe this can help you.
Thanks
-Jerry
дÈëÏûÏ¢ÐÂÎÅ:5074076@discussion.autodesk.com...
Hi ,
I am taking grip selection using "acedSSGetFirst" function. Them I am
setting grip programmatically using by using ¡°ads_sssetfirst¡°
Following is related code:
bool functest(ads_name ss)
// ss is implied grip selection I have got using "acedSSGetFirst"
{
long sslen;
ads_name newSelection;
ads_name ent;
ads_sslength(ss, &sslen);
for (long i=0L; i < sslen ; i++)
{
ads_ssname(ss, i, ent);
ads_ssadd(ent,NULL ,newSelection);
}
if (ads_sssetfirst(newSelection,newSelection) != RTNORM)
{
ads_printf(" Alert !!");
return false;
}
return true;
}
The ¡°ads_sssetfirst: function returns ¡°RTNORM¡± but I am not able to see
the entities in grip selection as AutoCAD normally displays grip selected
entities.
I have again make a call to ¡°ads_ssgetfirst¡± for implied grip selection
and it gives me selection. From that I can infer that it is a problem of
displaying grip selection.
Can anyone help me to fix it ??