<?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 Betreff: How to isolate/hide objects like command _isolateobjects? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4772027#M12824</link>
    <description>&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I belief that there is no API to interact with the isolate command or the icon in the status bar. But you can call the isolate command from your code.&lt;/P&gt;&lt;P&gt;Try something like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    AcDbObjectIdArray arrIds;

//    fill arrIds with the object ids of the objects you want to isolate
    ...
    ...

    if (arrIds.length())
        {
        ads_name ss;
        acedSSAdd(NULL,NULL,ss);

        for (int i=0; i&amp;lt;arrIds.length();++i)
            {
            ads_name eName;
            acdbGetAdsName(eName,arrIds.at(i));
            acedSSAdd(eName,ss,ss);
            }

        acedCommand(
                                    RTSTR, _T("_ISOLATEOBJECTS"),
                                    RTPICKS, ss,
                                    RTSTR, _T(""),
                                    RTNONE
                             );
        }

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Arnold&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2014 09:09:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-24T09:09:35Z</dc:date>
    <item>
      <title>How to isolate/hide objects like command _isolateobjects?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4750027#M12822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to isolate or hide objects like command&amp;nbsp;&lt;EM&gt;_isolateobjects&lt;/EM&gt;. So my idea is to change the visibility for each object/entity, but how to tell AutoCAD that an isolation is active? My goal is to interact with the isolation icon in the status bar (bottom right) and to be able to click on&amp;nbsp;&lt;EM&gt;End Object Isolation:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="oarx_isolation.png" title="oarx_isolation.png" border="0" align="center" src="https://forums.autodesk.com/t5/image/serverpage/image-id/78015i5CADFB5106AC00B9/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All suggestions are welcomed.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 16:39:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4750027#M12822</guid>
      <dc:creator>maisoui</dc:creator>
      <dc:date>2014-01-14T16:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to isolate/hide objects like command _isolateobjects?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4771979#M12823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm also interested in driving this feature using object arx, I've unfortunately found nothing about this in the documentation. I should like to bring this topic up on the list in case of someone at autodesk could give us more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loic Jourdan&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 08:11:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4771979#M12823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T08:11:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to isolate/hide objects like command _isolateobjects?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4772027#M12824</link>
      <description>&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I belief that there is no API to interact with the isolate command or the icon in the status bar. But you can call the isolate command from your code.&lt;/P&gt;&lt;P&gt;Try something like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    AcDbObjectIdArray arrIds;

//    fill arrIds with the object ids of the objects you want to isolate
    ...
    ...

    if (arrIds.length())
        {
        ads_name ss;
        acedSSAdd(NULL,NULL,ss);

        for (int i=0; i&amp;lt;arrIds.length();++i)
            {
            ads_name eName;
            acdbGetAdsName(eName,arrIds.at(i));
            acedSSAdd(eName,ss,ss);
            }

        acedCommand(
                                    RTSTR, _T("_ISOLATEOBJECTS"),
                                    RTPICKS, ss,
                                    RTSTR, _T(""),
                                    RTNONE
                             );
        }

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Arnold&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 09:09:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4772027#M12824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to isolate/hide objects like command _isolateobjects?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4775753#M12825</link>
      <description>You can use "visible" property that is managed by 60 DXF code in entity's data (if it is set to 1 then entity becomes invisible).</description>
      <pubDate>Mon, 27 Jan 2014 06:30:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4775753#M12825</guid>
      <dc:creator>NikolayPoleshchuk</dc:creator>
      <dc:date>2014-01-27T06:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to isolate/hide objects like command _isolateobjects?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4775785#M12826</link>
      <description>&lt;P&gt;Yes you're right, but it will not be integrated with AutoCad Object Isolation (as I mentionned).&lt;/P&gt;&lt;P&gt;Maybe you didn't read my entire question?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 07:23:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4775785#M12826</guid>
      <dc:creator>maisoui</dc:creator>
      <dc:date>2014-01-27T07:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to isolate/hide objects like command _isolateobjects?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4775829#M12827</link>
      <description>&lt;P&gt;The solution of Anodl works very well, even if woking with AutoCAD commands is not my favorite code. A few remarks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can use&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;_.hideobjects&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;or&lt;STRONG&gt;&amp;nbsp;&lt;EM&gt;_.isolateobjects&lt;/EM&gt;&amp;nbsp;&lt;/STRONG&gt;to hide or isolate objects&lt;/LI&gt;&lt;LI&gt;If you have groups, you need to open group (for read) and retrieve all entities id with method&amp;nbsp;&lt;EM&gt;allEntityIds()&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;In FIBERLESS world, you need to use acedCommandS (subroutine)&lt;/LI&gt;&lt;LI&gt;Add&amp;nbsp;&lt;EM&gt;acedSSFree(ss)&amp;nbsp;&lt;/EM&gt;to clear selection set&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;Acad::ErrorStatus es;

//create selection set
ads_name ss;
acedSSAdd(NULL, NULL, ss);
for(int i=0; i&amp;lt;ids.length(); ++i)
{
	ads_name eName;
	es = acdbGetAdsName(eName, ids.at(i));
	acedSSAdd(eName, ss, ss);
}

//execute command
acedCommandS(RTSTR, bHide ? _T("_.hideobjects") : _T("_.isolateobjects"), RTPICKS, ss, RTSTR, _T(""), RTNONE);

acedSSFree(ss);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 08:26:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-isolate-hide-objects-like-command-isolateobjects/m-p/4775829#M12827</guid>
      <dc:creator>maisoui</dc:creator>
      <dc:date>2014-01-27T08:26:07Z</dc:date>
    </item>
  </channel>
</rss>

