Message 1 of 2
moveGripPointsAt doesnt work with some objects + edit Curve points question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've tried to code a script that would reposition all selected grip points according to a function;
It works like a charm on polylines;
but it hits a snag on many other objects;
on lines it does not move points (even though correct input happens)
and on splines it pops an unhandled exception error;
can someone clarify this behaviour for me? Or propose an alternative method?
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?"
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); } }