<?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: using GRIP_STRETCH command in acedCmds in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8221570#M6234</link>
    <description>&lt;P&gt;Can you please give us some context, how did you to get to this 'GRIP_STRETCH', a workflow in AutoCAD UI?, I don't see it is defined anywhere in our code base, I'm just wondering.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Aug 2018 05:56:18 GMT</pubDate>
    <dc:creator>moogalm</dc:creator>
    <dc:date>2018-08-24T05:56:18Z</dc:date>
    <item>
      <title>using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8220929#M6233</link>
      <description>&lt;P&gt;Trying to set this up in my objectARX code and not getting very far.&amp;nbsp; Doesn't seem to be any documentation for this.&amp;nbsp; Is there another way to go about doing this?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 21:06:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8220929#M6233</guid>
      <dc:creator>dajum</dc:creator>
      <dc:date>2018-08-23T21:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8221570#M6234</link>
      <description>&lt;P&gt;Can you please give us some context, how did you to get to this 'GRIP_STRETCH', a workflow in AutoCAD UI?, I don't see it is defined anywhere in our code base, I'm just wondering.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 05:56:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8221570#M6234</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2018-08-24T05:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8222090#M6235</link>
      <description>Hello,&lt;BR /&gt;In my mind, GRIP_STRETCH is not a "real" command.&lt;BR /&gt;When you move a grip on an object, the locking-unlocking process of the drawing is necessary to modify the object and GRIP_STRETCH is given as the command name : acDocManagerPtr()-&amp;gt;lockDocument(pDoc, pGlobalCmdName,...)&lt;BR /&gt;I think, it is also necessary for the UNDO mechanism.&lt;BR /&gt;Cheers.</description>
      <pubDate>Fri, 24 Aug 2018 10:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8222090#M6235</guid>
      <dc:creator>thierry_prince</dc:creator>
      <dc:date>2018-08-24T10:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8222421#M6236</link>
      <description>I see that as the command name in an editor reactor (commandStarted/&lt;BR /&gt;CommandEnded) when I manually start the process by selecting an object&lt;BR /&gt;and picking the grip point.&amp;nbsp; I want to repeat it programatically.&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2018 12:49:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8222421#M6236</guid>
      <dc:creator>dajum</dc:creator>
      <dc:date>2018-08-24T12:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8222462#M6237</link>
      <description>&lt;P&gt;I don't see GRIP_STRETCH being much different than _MOVE or STRETCH&amp;nbsp; I can use both those, but their functionality doesn't work the same.&amp;nbsp; My code is just&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ads_point pt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pt[0] = origin.x;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pt[1] = origin.y;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pt[2] = origin.z;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;struct resbuf *Mv;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mv = acutBuildList(RTSTR, _T(&lt;SPAN class="lia-button-wrapper lia-button-wrapper-secondary lia-component-quick-reply-button"&gt;"&lt;/SPAN&gt;STRETCH"), RTSTR, _T("_LAST"), RTSTR, _T(""),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;RTPOINT, pt, RTSTR, PAUSE, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;acedCmdS(Mv);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;acedCommandS(RTNONE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;acutRelRb(Mv);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which works fine, it just doesn't work like I want it to.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 13:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8222462#M6237</guid>
      <dc:creator>dajum</dc:creator>
      <dc:date>2018-08-24T13:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8251792#M6238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience.&lt;/P&gt;
&lt;P&gt;Cmd strings - &lt;CODE&gt;grip_stretch|grip_move|grip_rotate|grip_scale|grip_mirror&lt;/CODE&gt; are not actual command as you see your regular command, these are internal to GRIP editor and are used to identify the current operation for the purpose of command start /end notification.&lt;/P&gt;
&lt;P&gt;When user hots a grip, Grip editor intiaties various grip mode operation based user inputs, i.e,&amp;nbsp; for&amp;nbsp;suppose user selects a Grip, and enters &lt;CODE&gt; rotate &lt;/CODE&gt; command on ACAD Command Line, an equivalent Grip_Rotate operation is executed.&lt;BR /&gt;By default the grip action upon selecting a grip is Grip_Stretch.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 06:16:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8251792#M6238</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2018-09-07T06:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8252589#M6239</link>
      <description>&lt;P&gt;&amp;nbsp;I want to add code to start this functionality in software.&amp;nbsp; If I can't use GRIP_STRETCH, what can I do to mimic this functionality?&amp;nbsp; If the user can initiate action, there must be some way to initiate it in software.&amp;nbsp; Can we make the grip point show? Isn't there something in the API that can help?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 12:29:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8252589#M6239</guid>
      <dc:creator>dajum</dc:creator>
      <dc:date>2018-09-07T12:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8263309#M6240</link>
      <description>&lt;P&gt;While you are perfoming a grip dragging or stretch operation, AutoCAD calls&lt;/P&gt;
&lt;PRE&gt;AcDbEntity::moveGripPointsAt (AcDbIntArray &amp;amp;, AcGeVector3d&amp;amp;);
AcDbEntity::moveGripPointsAt (AcDbVoidPtrArray&amp;amp;, AcGeVector3d&amp;amp;, int);
or
Acad::ErrorStatus AcDbEntity::moveStretchPointsAt(
    const AcDbIntArray &amp;amp; indices, 
    const AcGeVector3d&amp;amp; offset
);&lt;/PRE&gt;
&lt;P&gt;for the entity beeing dragged.&lt;/P&gt;
&lt;P&gt;The ARX docs state that it is possible to call these methods in an ARX application as well. I've never tried it - but I think this might work.&lt;BR /&gt;You will face the problem that you have to find out which grip index you want to move. But I think for a polyline this should be quite straightforward.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 15:24:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8263309#M6240</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2018-09-12T15:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8264056#M6241</link>
      <description>&lt;P&gt;I have a custom object that implements those functions and they are called during the grip stretch.&amp;nbsp; But I'm hoping to get the system to make that call and not have to write my own function to do it.&amp;nbsp; They are fairly complex to write and seem like such a waste when I know the system already does it.&amp;nbsp; That is the point here, not having to rewrite everything from scratch.&amp;nbsp; Seems like there &lt;EM&gt;should&lt;/EM&gt; be a way to start up things that can be started by the user.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:10:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8264056#M6241</guid>
      <dc:creator>dajum</dc:creator>
      <dc:date>2018-09-12T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8264199#M6242</link>
      <description>&lt;P&gt;I've found this to be the case with a lot of AutoCAD's 'standard' behaviours - the tools are there to replicate them, but in a lot of cases you have to re-code them from scratch rather than re-using the existing stuff. Drawing/dimension jigs for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you say, its annoying to have to re-code something entirely just to replicate existing functionality.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:09:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8264199#M6242</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2018-09-12T21:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8264393#M6243</link>
      <description>&lt;P&gt;From the users point of view a GRIP_STRECH requires to&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;select one or more grip points of an entity&amp;nbsp; (giving &lt;FONT face="courier new,courier"&gt;indices&lt;/FONT&gt;)&lt;/LI&gt;
&lt;LI&gt;drag them (giving &lt;FONT face="courier new,courier"&gt;offset&lt;/FONT&gt;)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;These actions are passed to &lt;FONT face="courier new,courier"&gt;AcDbEntity::moveGripPointAt(indices, offset)&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;This will also work for build-in entities. You don't need to implement a custom entity to use this mechanism.&lt;/P&gt;
&lt;P&gt;But if you have implemented a custom entity, you definitely need to implement&amp;nbsp;&lt;FONT face="courier new,courier"&gt;moveGripPointAt()&lt;/FONT&gt; if it shall support GRIP_STRETCH.&lt;/P&gt;
&lt;P&gt;So the function you want to write just has to call&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcDbEntity::moveGripPointAt(indices, offset)&lt;/FONT&gt; with proper &lt;FONT face="courier new,courier"&gt;indices &lt;/FONT&gt;and&amp;nbsp; &lt;FONT face="courier new,courier"&gt;offset.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:50:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8264393#M6243</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2018-09-12T22:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: using GRIP_STRETCH command in acedCmds</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8264524#M6244</link>
      <description>&lt;P&gt;As I stated in the last post I have implemented those functions.&amp;nbsp; And to be more specific, all of the grip point functions are implemented in my custom entity.&amp;nbsp; The question I'm looking for an answer to is how to get these functions called without writing a jig to call them myself.&amp;nbsp; grip_stretch uses them but isn't part of the API.&amp;nbsp; Is there some other function that is?&amp;nbsp; The purpose of the acedCmds function is to call functions to do what the user can do.&amp;nbsp; It seems there should be a way to start this particular process via acedCmds.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 01:01:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/using-grip-stretch-command-in-acedcmds/m-p/8264524#M6244</guid>
      <dc:creator>dajum</dc:creator>
      <dc:date>2018-09-13T01:01:57Z</dc:date>
    </item>
  </channel>
</rss>

