<?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 moveGripPointsAt doesnt work with some objects + edit Curve points question in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/movegrippointsat-doesnt-work-with-some-objects-edit-curve-points/m-p/6923333#M32427</link>
    <description>&lt;P&gt;I've tried to&amp;nbsp;code a script that would reposition all selected grip points according to a function;&lt;BR /&gt;&lt;BR /&gt;It works like a charm on polylines;&lt;BR /&gt;&lt;BR /&gt;but it hits a snag on many other objects;&lt;BR /&gt;&lt;BR /&gt;on lines it does not move points (even though correct input happens)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;and on splines it pops an unhandled exception error;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can someone clarify this behaviour for me? Or propose an alternative method?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;while on the subject; can someone shed light on how to readjust "Curve point" using the curve point properties? Since I wasnt able to find a "Point3dcollection that would correspond to its points?"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;                foreach (GripData grip in grips)
                {
                    if (gripCounter % 2 == 0) //skip midpoints
                    {
                        Point3d oldPos = grip.GripPoint;
                        Point3d newPos = adjustPoints3d(oldPos);
                        Vector3d offsetPart = newPos - oldPos;

                        GripDataCollection gripsTemp = new GripDataCollection();
                        gripsTemp.Add(grip);

                        ent.MoveGripPointsAt(gripsTemp, offsetPart, MoveGripPointsFlags.Polar);
                    }
                }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2017 13:01:38 GMT</pubDate>
    <dc:creator>5thSth</dc:creator>
    <dc:date>2017-03-06T13:01:38Z</dc:date>
    <item>
      <title>moveGripPointsAt doesnt work with some objects + edit Curve points question</title>
      <link>https://forums.autodesk.com/t5/net-forum/movegrippointsat-doesnt-work-with-some-objects-edit-curve-points/m-p/6923333#M32427</link>
      <description>&lt;P&gt;I've tried to&amp;nbsp;code a script that would reposition all selected grip points according to a function;&lt;BR /&gt;&lt;BR /&gt;It works like a charm on polylines;&lt;BR /&gt;&lt;BR /&gt;but it hits a snag on many other objects;&lt;BR /&gt;&lt;BR /&gt;on lines it does not move points (even though correct input happens)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;and on splines it pops an unhandled exception error;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can someone clarify this behaviour for me? Or propose an alternative method?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;while on the subject; can someone shed light on how to readjust "Curve point" using the curve point properties? Since I wasnt able to find a "Point3dcollection that would correspond to its points?"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;                foreach (GripData grip in grips)
                {
                    if (gripCounter % 2 == 0) //skip midpoints
                    {
                        Point3d oldPos = grip.GripPoint;
                        Point3d newPos = adjustPoints3d(oldPos);
                        Vector3d offsetPart = newPos - oldPos;

                        GripDataCollection gripsTemp = new GripDataCollection();
                        gripsTemp.Add(grip);

                        ent.MoveGripPointsAt(gripsTemp, offsetPart, MoveGripPointsFlags.Polar);
                    }
                }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 13:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/movegrippointsat-doesnt-work-with-some-objects-edit-curve-points/m-p/6923333#M32427</guid>
      <dc:creator>5thSth</dc:creator>
      <dc:date>2017-03-06T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: moveGripPointsAt doesnt work with some objects + edit Curve points question</title>
      <link>https://forums.autodesk.com/t5/net-forum/movegrippointsat-doesnt-work-with-some-objects-edit-curve-points/m-p/6923417#M32428</link>
      <description>&lt;P&gt;addition; Ive realized grip initalization might be important as well.. so here's how I do it.&lt;/P&gt;
&lt;P&gt;I've gotten better results when using GetGripPointFlags.CyclableGripsOnly; with&amp;nbsp;Splines... but "Line" still doesnt move.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;     GripDataCollection grips = new GripDataCollection();
                    double curViewUnitSize = 0; int gripSize = 0;
                    Vector3d curViewDir = doc.Editor.GetCurrentView().ViewDirection;

                    GetGripPointsFlags bitFlags = GetGripPointsFlags.GripPointsOnly;

                    var xx = ent.GetGripPoints(grips, curViewUnitSize, gripSize, curViewDir, bitFlags);
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 13:53:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/movegrippointsat-doesnt-work-with-some-objects-edit-curve-points/m-p/6923417#M32428</guid>
      <dc:creator>5thSth</dc:creator>
      <dc:date>2017-03-06T13:53:36Z</dc:date>
    </item>
  </channel>
</rss>

