<?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 Re: how to make entity invisible but can be selected and moved? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3390751#M15009</link>
    <description>&lt;P&gt;one of the ways to do this is to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. collect your rectangle and invisible items&amp;nbsp;objectids or handles (it depends on situation)&lt;/P&gt;&lt;P&gt;2. create a hook for entities selection&lt;/P&gt;&lt;P&gt;3. create AcDbDatabaseReactor and use it's objectModified() and objectOpenedForModify() functions (forget about AcEditorReactor. It'll be much harder)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inside the objectOpenedForModify function you can check is your rectangle preparing for transformation and collect necessary initial data (as I understand the task it can be rotated, zoomed... too). If it'll be just moved - first rectangle point will be enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inside objectModified function you have to collect the same rectangle's data and transform your texts using transformBy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more details about database reactor - ObjectARX...\samples\reactors\dbreact_dg\&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Mar 2012 11:34:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-29T11:34:31Z</dc:date>
    <item>
      <title>how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3382899#M15002</link>
      <description>&lt;P&gt;I want a solution that can make entity invisible(not really),but when user select and move,the invisible entity can also be selected with other visible entities. In other words,those invisible entities are no different with visible entities but just can not be see and printed.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 08:09:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3382899#M15002</guid>
      <dc:creator>sdphg</dc:creator>
      <dc:date>2012-03-23T08:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3383103#M15003</link>
      <description>&lt;P&gt;Interactive entity selection is based on the graphical display of the entity, so there can be no interactive selection if nothing is visible.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Owen Wengerd&lt;/P&gt;&lt;P&gt;ManuSoft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 11:00:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3383103#M15003</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2012-03-23T11:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3385109#M15004</link>
      <description>&lt;P&gt;sorry, Owen, but you are wrong &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;entObj-&amp;gt;setVisibility(...)&lt;/STRONG&gt; can make entity visible or invisible. it consists of parameter of the function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function &lt;STRONG&gt;acedSSGet(_T("_a"), NULL, NULL, NULL, ent);&lt;/STRONG&gt; will collect all enetitties regardless of their visibility &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For example, make some entities invisible, and then use SELECT ALL command and move your selection. Invisible entities will be moved too.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2012 07:20:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3385109#M15004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-26T07:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3386481#M15005</link>
      <description>&lt;P&gt;Nick, the example you give is not interactive.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Owen Wengerd&lt;/P&gt;&lt;P&gt;ManuSoft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2012 22:59:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3386481#M15005</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2012-03-26T22:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3386741#M15006</link>
      <description>&lt;P&gt;In my application I use the following scheme. Before interactive selection I&amp;nbsp;set hidden&amp;nbsp;entities temporarily visible and highlighted to make them selectable by the user. And after selection I hide unnecessary entities again.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2012 07:02:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3386741#M15006</guid>
      <dc:creator>NikolayPoleshchuk</dc:creator>
      <dc:date>2012-03-27T07:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3386749#M15007</link>
      <description>&lt;P&gt;I know, but the task is &lt;STRONG&gt;"... when user select and move,the invisible entity can also be selected with other visible entities. In other words,those invisible entities are no different with visible entities but just can not be see and printed..."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So, my example shows, how can the invisible entity be colleced for moving and moved using just native acad functions and nothing more. But if it's necessary to select just several items, and move them, sdphg have to use reactors for adding invisible items to "selectionset" manually. For example, AcEditorReactor::commandWillStart() and AcEditorReactor:: commandEnded() can be used for this. For modifying preselect function acedSSSetFirst have to be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Owen,&amp;nbsp;the questin is "HOW TO", but not "IS IT POSSIBLE". There is a difference &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2012 07:15:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3386749#M15007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-27T07:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3390665#M15008</link>
      <description>&lt;P&gt;Thanks you guys.&lt;/P&gt;&lt;P&gt;I think&amp;nbsp;&lt;A target="_self" href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/583390"&gt;Nick1983&lt;/A&gt;&amp;nbsp;is more close to what I want. &amp;nbsp;Actually the case is: I have a rectangle and severl dbtexts inside,the text must keep inside. You can imagine the rectangle is a room and each text inside represent a furniture.In some situations some funiture(dbtext) should be hide,but when user select the room(rectangle) area then move, all of the funitures inside the room should be moved too. Or the room will lost the funitures outside the rectangle.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 10:24:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3390665#M15008</guid>
      <dc:creator>sdphg</dc:creator>
      <dc:date>2012-03-29T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3390751#M15009</link>
      <description>&lt;P&gt;one of the ways to do this is to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. collect your rectangle and invisible items&amp;nbsp;objectids or handles (it depends on situation)&lt;/P&gt;&lt;P&gt;2. create a hook for entities selection&lt;/P&gt;&lt;P&gt;3. create AcDbDatabaseReactor and use it's objectModified() and objectOpenedForModify() functions (forget about AcEditorReactor. It'll be much harder)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inside the objectOpenedForModify function you can check is your rectangle preparing for transformation and collect necessary initial data (as I understand the task it can be rotated, zoomed... too). If it'll be just moved - first rectangle point will be enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inside objectModified function you have to collect the same rectangle's data and transform your texts using transformBy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more details about database reactor - ObjectARX...\samples\reactors\dbreact_dg\&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 11:34:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3390751#M15009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-29T11:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3390841#M15010</link>
      <description>&lt;P&gt;Forgot to say few words. Another way is to use persistent reactor. May be it'll be easier for you.&lt;/P&gt;&lt;P&gt;For more details - \samples\reactors\persreac_dg\&lt;/P&gt;&lt;P&gt;or &lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-3.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-3.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 12:30:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3390841#M15010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-29T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3391467#M15011</link>
      <description>&lt;P&gt;Using Overrule in your case may be a lot easier than using editor/database reactor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, you can use DrawableOverrule on the rectangule, and based on theneed to draw or not draw&amp;nbsp;the furniture (thus, visible/invisible). This way, there is only a single entity (rectangle), you can define some properties in the Overrule for the things conatined in the rectagle and have some methods to show/hide those things inside the rectangle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 16:45:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3391467#M15011</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2012-03-29T16:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to make entity invisible but can be selected and moved?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3392481#M15012</link>
      <description>&lt;P&gt;Thank you Nick.Looks there is no straightfoward way. so your solution is the best.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921" target="_self"&gt;norman.yuan&lt;/A&gt;&amp;nbsp;thank you too. Your suggestion is very well,but I am not familiar with Overrule and it looks the Overrule is not support in AutoCAD2007,is this right?Is the Overrule in .net equals to custom entity in c++?I think custom entity is another way to achieve my aim.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you everybody!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 08:44:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-make-entity-invisible-but-can-be-selected-and-moved/m-p/3392481#M15012</guid>
      <dc:creator>sdphg</dc:creator>
      <dc:date>2012-03-30T08:44:04Z</dc:date>
    </item>
  </channel>
</rss>

