<?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: LASTANGLE for custom objects in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232952#M10297</link>
    <description>Sorry LE3, but I don't need to calculate the angle : I would set it in the LASTANGLE system variable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Thu, 24 Mar 2016 16:35:36 GMT</pubDate>
    <dc:creator>thierry_prince</dc:creator>
    <dc:date>2016-03-24T16:35:36Z</dc:date>
    <item>
      <title>LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6230556#M10293</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a custom object that is similar to a polyline and, while in its construction command (and also when the command is finished), we need to update the LASTPOINT and the LASTANGLE system variables.&lt;/P&gt;&lt;P&gt;No problem with the LASPOINT variable, but the LASTANGLE variable is read-only. (Why ?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example for this need is to launch a transparent command while in the object construction command to calculate the next point with the last one and the orientation of the last segment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion ?&lt;/P&gt;&lt;P&gt;(Other than to draw a new line with 'acedCommandS' API function to force the update of the variable, and deleting the line after that.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Thierry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 14:35:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6230556#M10293</guid>
      <dc:creator>thierry_prince</dc:creator>
      <dc:date>2016-03-23T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232544#M10294</link>
      <description>&lt;P&gt;I agree that using acedCommandS(L"_line") is a bad idea.&lt;/P&gt;&lt;P&gt;Have you tried to create a new AcDbLine and add it to the modelspace using ARX? You can make the line invisible before you add it to the DB.&lt;/P&gt;&lt;P&gt;This shouldn't disturb your command flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 14:10:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232544#M10294</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2016-03-24T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232625#M10295</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your answer, but I can't believe that creating a new AcDbLine and adding it to the model space will update the LASTANGLE value.&lt;/P&gt;&lt;P&gt;I'll try it but with very few hope...&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Thierry&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 14:34:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232625#M10295</guid>
      <dc:creator>thierry_prince</dc:creator>
      <dc:date>2016-03-24T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232894#M10296</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;maybe, to get last entity in any of the spaces (model, paper) that it is a curve (AcDbCurve) and calculate the angle.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232894#M10296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-24T16:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232952#M10297</link>
      <description>Sorry LE3, but I don't need to calculate the angle : I would set it in the LASTANGLE system variable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:35:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6232952#M10297</guid>
      <dc:creator>thierry_prince</dc:creator>
      <dc:date>2016-03-24T16:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6233095#M10298</link>
      <description>&lt;P&gt;I just tried it myself. You're right. It doesn't work.&lt;/P&gt;&lt;P&gt;Neither by appending a &lt;FONT face="courier new,courier"&gt;new AcDbLine&lt;/FONT&gt; to the modelspace nor using &lt;FONT face="courier new,courier"&gt;acdbEntMake(resbuf);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry. No more ideas right now &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:31:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6233095#M10298</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2016-03-24T17:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6233613#M10299</link>
      <description>&lt;P&gt;I think the correct way is to use a jig for creating your entity. As far as I know, this should set both LASTPOINT and LASTANGLE (LASTANGLE I guess&amp;nbsp;only if acquireAngle() is called). Note that this behavior may be influenced by the kDontUpdateLastPoint flag.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 21:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6233613#M10299</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2016-03-24T21:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6234086#M10300</link>
      <description>&lt;P&gt;Hi Owen,&lt;/P&gt;&lt;P&gt;Thanks for your answer. I think we are not so far to an acceptable solution.&lt;/P&gt;&lt;P&gt;Effectively, when using a Jig to get a point, the LASTPOINT system variable can be updated or not, regarding of the use of the kDontUpdateLastPoint flag.&lt;/P&gt;&lt;P&gt;But if we consider that our object is similar to a polyline, the AcEdJig::acquireAngle() can't be used to input a vertex, because it returns only an angle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need that every acquired point update the LASPOINT variable and, starting from the second point, that every new point also update the LASTANGLE variable.&lt;/P&gt;&lt;P&gt;So writen, it seems to be very simple... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 09:18:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6234086#M10300</guid>
      <dc:creator>thierry_prince</dc:creator>
      <dc:date>2016-03-25T09:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6235116#M10301</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1699931"&gt;@thierry_prince&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;We need that every acquired point update the LASPOINT variable and, starting from the second point, that every new point also update the LASTANGLE variable.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Have you tested whether acquirePoint() with a basepoint updates LASTANGLE?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 20:12:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6235116#M10301</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2016-03-25T20:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: LASTANGLE for custom objects</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6237006#M10302</link>
      <description>&lt;P&gt;Hi Owen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also read carefully the ObjectArx documentation and nowhere is writen about LASTANGLE.&lt;/P&gt;&lt;P&gt;Even the API function acquireAngle() doesn't update the LASTANGLE variable. It updates only LASTPOINT !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to update many time the LASTPOINT variable for the case it will update the LASTANGLE automaticly. But not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 08:33:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/lastangle-for-custom-objects/m-p/6237006#M10302</guid>
      <dc:creator>thierry_prince</dc:creator>
      <dc:date>2016-03-28T08:33:10Z</dc:date>
    </item>
  </channel>
</rss>

