<?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 Can I Move Objects in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326771#M33026</link>
    <description>On Mon, 24 Nov 2003 02:15:36 -0800, Iggo wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Hi.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I Have AcDbEntity and i want to move it to specific point, How ???&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
AFAIK, you can't &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
You need to open the entity as the type it is, i.e. AcDbLine, AcDbCircle, &lt;BR /&gt;
AcDbPolyline, etc... and then each class has it's different way of changing &lt;BR /&gt;
the insertion point&lt;BR /&gt;
&lt;BR /&gt;
This is one of the most stupid things that Autodesk has done!&lt;BR /&gt;
&lt;BR /&gt;
I can't figure out why it is done this way, every entity needs an insertion &lt;BR /&gt;
point... But now maybe I will know &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
// Anders</description>
    <pubDate>Mon, 24 Nov 2003 04:02:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-11-24T04:02:05Z</dc:date>
    <item>
      <title>How Can I Move Objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326770#M33025</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
I Have AcDbEntity and i want to move it to specific point, How ???&lt;BR /&gt;
&lt;BR /&gt;
Thanks A Lot For Helping.</description>
      <pubDate>Mon, 24 Nov 2003 02:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326770#M33025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-24T02:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Move Objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326771#M33026</link>
      <description>On Mon, 24 Nov 2003 02:15:36 -0800, Iggo wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Hi.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I Have AcDbEntity and i want to move it to specific point, How ???&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
AFAIK, you can't &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
You need to open the entity as the type it is, i.e. AcDbLine, AcDbCircle, &lt;BR /&gt;
AcDbPolyline, etc... and then each class has it's different way of changing &lt;BR /&gt;
the insertion point&lt;BR /&gt;
&lt;BR /&gt;
This is one of the most stupid things that Autodesk has done!&lt;BR /&gt;
&lt;BR /&gt;
I can't figure out why it is done this way, every entity needs an insertion &lt;BR /&gt;
point... But now maybe I will know &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
// Anders</description>
      <pubDate>Mon, 24 Nov 2003 04:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326771#M33026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-24T04:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Move Objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326772#M33027</link>
      <description>transform(...)&lt;BR /&gt;
"Iggo" &lt;IGOB&gt;&lt;BR /&gt;
??????:0A5DD77DBFA0532F43FDB8F641A2DBCF@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I Have AcDbEntity and i want to move it to specific point, How ???&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks A Lot For Helping.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/IGOB&gt;</description>
      <pubDate>Mon, 24 Nov 2003 05:31:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326772#M33027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-24T05:31:06Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326773#M33028</link>
      <description>&amp;gt; AFAIK, you can't &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You need to open the entity as the type it is, i.e.&lt;BR /&gt;
&amp;gt; AcDbLine, AcDbCircle, AcDbPolyline, etc... and then&lt;BR /&gt;
&amp;gt; each class has it's different way of changing the insertion point&lt;BR /&gt;
&lt;BR /&gt;
I'm afraid you're mistaken.&lt;BR /&gt;
&lt;BR /&gt;
You can move any entity using AcDbEntity::transformBy()&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
AcadXTabs: Document Tabs for AutoCAD&lt;BR /&gt;
http://www.acadxtabs.com</description>
      <pubDate>Mon, 24 Nov 2003 06:36:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326773#M33028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-24T06:36:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326774#M33029</link>
      <description>On Mon, 24 Nov 2003 06:36:33 -0800, Tony Tanzillo wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I'm afraid you're mistaken.&lt;BR /&gt;
&lt;BR /&gt;
Well, that's no suprise &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; You can move any entity using AcDbEntity::transformBy()&lt;BR /&gt;
Would you Please post an sample!&lt;BR /&gt;
&lt;BR /&gt;
I don't understand how you can move the entity without knowing it's&lt;BR /&gt;
insertion point and to know this I must have the actual type, e.g.&lt;BR /&gt;
AcDbCircle, don't I??&lt;BR /&gt;
&lt;BR /&gt;
// Anders</description>
      <pubDate>Tue, 25 Nov 2003 02:01:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326774#M33029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-25T02:01:46Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326775#M33030</link>
      <description>You don't need to know how to move any entity, because&lt;BR /&gt;
each entity knows how to "move" itself, when it is told&lt;BR /&gt;
to do that, and the only thing you need to tell an entity&lt;BR /&gt;
is how far and in what direction to move, right?&lt;BR /&gt;
&lt;BR /&gt;
That's the whole point to "object oriented". Each object&lt;BR /&gt;
encapsulates the intelligence and logic required to&lt;BR /&gt;
carry out operations like move, scale, and so forth.&lt;BR /&gt;
&lt;BR /&gt;
  AcGeMatrix3d m;&lt;BR /&gt;
  AcGeVector3d v(2.0, 4.0, 1.0);        // X, Y, Z translation&lt;BR /&gt;
  m.setTranslation(v);&lt;BR /&gt;
  AcDbEntity* pEnt = ...    // open entity to move&lt;BR /&gt;
  pEnt-&amp;gt;transformBy(m);&lt;BR /&gt;
  pEnt-&amp;gt;close();&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
AcadXTabs: Document Tabs for AutoCAD&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Anders Eriksson" &lt;ANDERS.ERIKSSON&gt; wrote in message&lt;BR /&gt;
news:c3woanirh2ge$.dlg@morateknikutveckling.se...&lt;BR /&gt;
&amp;gt; On Mon, 24 Nov 2003 06:36:33 -0800, Tony Tanzillo wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I'm afraid you're mistaken.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Well, that's no suprise &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; You can move any entity using AcDbEntity::transformBy()&lt;BR /&gt;
&amp;gt; Would you Please post an sample!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I don't understand how you can move the entity without knowing it's&lt;BR /&gt;
&amp;gt; insertion point and to know this I must have the actual type, e.g.&lt;BR /&gt;
&amp;gt; AcDbCircle, don't I??&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; // Anders&lt;/ANDERS.ERIKSSON&gt;</description>
      <pubDate>Tue, 25 Nov 2003 09:43:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326775#M33030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-25T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326776#M33031</link>
      <description>Hello Tony!&lt;BR /&gt;
&lt;BR /&gt;
On Tue, 25 Nov 2003 09:43:03 -0800, Tony Tanzillo wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;   AcGeMatrix3d m;&lt;BR /&gt;
&amp;gt;   AcGeVector3d v(2.0, 4.0, 1.0);        // X, Y, Z translation&lt;BR /&gt;
&amp;gt;   m.setTranslation(v);&lt;BR /&gt;
&amp;gt;   AcDbEntity* pEnt = ...    // open entity to move&lt;BR /&gt;
&amp;gt;   pEnt-&amp;gt;transformBy(m);&lt;BR /&gt;
&amp;gt;   pEnt-&amp;gt;close();&lt;BR /&gt;
&lt;BR /&gt;
Ok, I finally get it! The movement is relative, but what if I need to move&lt;BR /&gt;
the entity to a specific coordinate?&lt;BR /&gt;
&lt;BR /&gt;
I just tested your code on a line and it will change both start point and&lt;BR /&gt;
end point. What if I only want to change the start point?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for helping!&lt;BR /&gt;
&lt;BR /&gt;
// Anders</description>
      <pubDate>Wed, 26 Nov 2003 02:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326776#M33031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-26T02:43:16Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326777#M33032</link>
      <description>Thanks, Tony.</description>
      <pubDate>Wed, 26 Nov 2003 03:02:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326777#M33032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-26T03:02:15Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326778#M33033</link>
      <description>"Anders Eriksson" &lt;ANDERS.ERIKSSON&gt; wrote&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Ok, I finally get it! The movement is relative, but what if I&lt;BR /&gt;
&amp;gt; need to move the entity to a specific coordinate?&lt;BR /&gt;
&lt;BR /&gt;
The movement is still relative. The only difference is how you&lt;BR /&gt;
determine the displacement.&lt;BR /&gt;
&lt;BR /&gt;
I think you're missing the point, which is that you originally&lt;BR /&gt;
suggested that moving an entity requires some specific knowledge&lt;BR /&gt;
about its type (e.g., its a circle, a line, an arc or so on), and&lt;BR /&gt;
that you must take different actions depending on the entity type,&lt;BR /&gt;
and what I was trying to say is that this is not the case.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I just tested your code on a line and it will change both start point and&lt;BR /&gt;
&amp;gt; end point. What if I only want to change the start point?&lt;BR /&gt;
&lt;BR /&gt;
If you only want to change the start point, that is not&lt;BR /&gt;
'moving' the entity, that's more akin to stretching it,&lt;BR /&gt;
and that's a different subject &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
AcadXTabs: Document Tabs for AutoCAD&lt;BR /&gt;
http://www.acadxtabs.com&lt;/ANDERS.ERIKSSON&gt;</description>
      <pubDate>Thu, 27 Nov 2003 13:25:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326778#M33033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-27T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326779#M33034</link>
      <description>On Thu, 27 Nov 2003 13:25:34 -0800, Tony Tanzillo wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; "Anders Eriksson" &lt;ANDERS.ERIKSSON&gt; wrote&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&amp;gt; Ok, I finally get it! The movement is relative, but what if I&lt;BR /&gt;
&amp;gt;&amp;gt; need to move the entity to a specific coordinate?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; The movement is still relative. The only difference is how you&lt;BR /&gt;
&amp;gt; determine the displacement.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
Which you can't do if you haven't got the entities insertion point and to&lt;BR /&gt;
get the insertion point you need to know the entity type.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I think you're missing the point, which is that you originally&lt;BR /&gt;
&amp;gt; suggested that moving an entity requires some specific knowledge&lt;BR /&gt;
&amp;gt; about its type (e.g., its a circle, a line, an arc or so on), and&lt;BR /&gt;
&amp;gt; that you must take different actions depending on the entity type,&lt;BR /&gt;
&amp;gt; and what I was trying to say is that this is not the case.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
Yes I see my error and I will update a lot of code using transformBy&lt;BR /&gt;
instead of testing for all sorts of strange entity types...&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; If you only want to change the start point, that is not&lt;BR /&gt;
&amp;gt; 'moving' the entity, that's more akin to stretching it,&lt;BR /&gt;
&amp;gt; and that's a different subject &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Yes of cause!&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much! I have learnt something new and really valuable! I&lt;BR /&gt;
really love newsgroups!!&lt;BR /&gt;
&lt;BR /&gt;
// Anders&lt;/ANDERS.ERIKSSON&gt;</description>
      <pubDate>Fri, 28 Nov 2003 00:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326779#M33034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-28T00:44:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326780#M33035</link>
      <description>"Anders Eriksson" &lt;ANDERS.ERIKSSON&gt; skrev i&lt;BR /&gt;
meddelandet&lt;BR /&gt;
&amp;gt; Which you can't do if you haven't got the entities insertion point and to&lt;BR /&gt;
&amp;gt; get the insertion point you need to know the entity type.&lt;BR /&gt;
&lt;BR /&gt;
Try getting the first grip-point. That would work in many cases.&lt;BR /&gt;
&lt;BR /&gt;
Good luck,&lt;BR /&gt;
&lt;BR /&gt;
Henrik Vallgren&lt;BR /&gt;
www.stream-space.com/links.htm&lt;/ANDERS.ERIKSSON&gt;</description>
      <pubDate>Fri, 28 Nov 2003 08:26:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-move-objects/m-p/326780#M33035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-28T08:26:35Z</dc:date>
    </item>
  </channel>
</rss>

