ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to acedSSSetFirst() from modeless dialog or ACRX_CMD_SESSION command?

1 REPLY 1
Reply
Message 1 of 2
421232206
504 Views, 1 Reply

How to acedSSSetFirst() from modeless dialog or ACRX_CMD_SESSION command?

Hello everyone,
I want to set a pickfirst selection set from a command registered with
ACRX_CMD_SESSION flag. But acedSSSetFirst() fails in this case. Is it
possible to enable acedSSSetFirst() from application execution context?

Technology change world! Coding change technology! We coders are coding!
1 REPLY 1
Message 2 of 2
Balaji_Ram
in reply to: 421232206

Hi,

 

Can you please provide a sample code snippet that I can use to reproduce the error message ?

 

I used the following code from a Session context command and it worked ok.

 

<code>

int nReturn ;
ads_name name;
ads_point pt;

nReturn = acedEntSel(_T("Select entity\n"), name, pt);
if(nReturn != RTNORM)
return;

AcDbObjectId Id;
if(acdbGetObjectId(Id, name) != Acad::eOk)
return;

ads_name ss, ename;
acedSSAdd( NULL, NULL, ss );
acdbGetAdsName( ename, Id );
acedSSAdd( ename, ss, ss );
acedSSSetFirst( ss, NULL );
acedSSFree( ss );

</code>

 

My command uses "ACRX_CMD_TRANSPARENT | ACRX_CMD_SESSION" flags.



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost