<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem of  AcEdSSGetFilter::endEntsel() method in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/problem-of-acedssgetfilter-endentsel-method/m-p/10293721#M3393</link>
    <description>&lt;P&gt;I want to use&amp;nbsp;acedEntSel() to let user to select a special type entity.&lt;/P&gt;&lt;P&gt;So I use the&amp;nbsp;AcEdSSGetFilter reactor as follow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;void AcEdSSGetFilter::endEntsel(Acad::PromptStatus returnStatus, const AcDbObjectId&amp;amp; pickedEntity, const AcGePoint3d&amp;amp; pickedPoint, AcEdSelectionSetService&amp;amp; service)
{
	service.remove(0);  //comment this line will always return eNormal
	returnStatus = Acad::PromptStatus::eRejected;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to&amp;nbsp;prompts the user to select an entity again when he selects a wrong type (like the arxdoc said). But I can't&amp;nbsp;distinguish whether the user cancel the&amp;nbsp;acedEntSel() method or select a wrong type.&lt;/P&gt;&lt;P&gt;If I use service.remove(0) the acedEntSel() always return eError (same result with user cancel).&amp;nbsp; It seems I can't change&amp;nbsp;returnStatus success since it don't have a "&amp;amp;" flag.&lt;/P&gt;&lt;P&gt;What can I do to&amp;nbsp;achieve my&amp;nbsp;purpose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble gtx-bubble"&gt;&lt;DIV class="jfk-bubble-content-id"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowdown"&gt;&lt;DIV class="jfk-bubble-arrowimplbefore"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-arrowimplafter"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 06 May 2021 02:06:32 GMT</pubDate>
    <dc:creator>hbxiaogui</dc:creator>
    <dc:date>2021-05-06T02:06:32Z</dc:date>
    <item>
      <title>Problem of  AcEdSSGetFilter::endEntsel() method</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-of-acedssgetfilter-endentsel-method/m-p/10293721#M3393</link>
      <description>&lt;P&gt;I want to use&amp;nbsp;acedEntSel() to let user to select a special type entity.&lt;/P&gt;&lt;P&gt;So I use the&amp;nbsp;AcEdSSGetFilter reactor as follow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;void AcEdSSGetFilter::endEntsel(Acad::PromptStatus returnStatus, const AcDbObjectId&amp;amp; pickedEntity, const AcGePoint3d&amp;amp; pickedPoint, AcEdSelectionSetService&amp;amp; service)
{
	service.remove(0);  //comment this line will always return eNormal
	returnStatus = Acad::PromptStatus::eRejected;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to&amp;nbsp;prompts the user to select an entity again when he selects a wrong type (like the arxdoc said). But I can't&amp;nbsp;distinguish whether the user cancel the&amp;nbsp;acedEntSel() method or select a wrong type.&lt;/P&gt;&lt;P&gt;If I use service.remove(0) the acedEntSel() always return eError (same result with user cancel).&amp;nbsp; It seems I can't change&amp;nbsp;returnStatus success since it don't have a "&amp;amp;" flag.&lt;/P&gt;&lt;P&gt;What can I do to&amp;nbsp;achieve my&amp;nbsp;purpose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble gtx-bubble"&gt;&lt;DIV class="jfk-bubble-content-id"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowdown"&gt;&lt;DIV class="jfk-bubble-arrowimplbefore"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-arrowimplafter"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 May 2021 02:06:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-of-acedssgetfilter-endentsel-method/m-p/10293721#M3393</guid>
      <dc:creator>hbxiaogui</dc:creator>
      <dc:date>2021-05-06T02:06:32Z</dc:date>
    </item>
  </channel>
</rss>

