Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on some code to place dimensions, so let user pick 2 points and code will place dimensions between all intersections of objects with the line between this 2 points.
Points are collected by:
Point3dCollection punten = new Point3dCollection();
foreach (ObjectId id in set.GetObjectIds())
{
Entity ent = tra.GetObject(id, OpenMode.ForRead) as Entity;
maatlijn.IntersectWith(ent, Intersect.OnBothOperands, punten, IntPtr.Zero,
IntPtr.Zero);
}
this works fine as long as objects are 'lines'.
However, when intersecting object is polyline, it doesn't seem to give all points, sometimes even results into fatal error.
Any idea on how to fix this?
Solved! Go to Solution.