Message 1 of 4
Change Polyline3d

Not applicable
07-19-2013
05:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i have a program to change the polyline3d. Something like
try
{
using (tr)
{
Polyline3d poly3d = (Polyline3d)tr.GetObject(oid, OpenMode.ForWrite); ObjectId[] verts = poly3d.Cast<ObjectId>().ToArray(); for (int i = 0; i < verts.Length; i++) { vt = tr.GetObject(verts[i], OpenMode.ForWrite) as PolylineVertex3d; vt.Position = new Point3d(X, Y, Z); }
tr.Commit();
}
}
catch
{
}
finally
{
tr.Dispose();
}
After that, the polyline3d changes perfectly. On the screen i can see the change. But when i run the command 3dorbit, then i see the polyline3d before the change.
You can see it on the Pictures
When i save the drawing and open it again, everthing is all right.
Can anyone tell me where the error is? 🙂
Thanks