I've messed with this a ton but I can't see why it's failing to break my arcs at the point locations specified. Can anyone see what I'm missing?
DBObjectCollection newCurves
= new DBObjectCollection
(); foreach (ObjectId myid in originalcollection)
{
if (myid
.GetType() == typeof(Arc
)) {
...
}
}
}
If you looked at the "if...." statement in the "for..." loop carefully, or if you ran the code with BREAK POINT inside the loop or inside the "if..." block, you would have known why the code did not work: all the code enclosed by "if..." is bypassed, because an ObjectID cannot be a type of "Arc".
You should use
if (myid.ObjectClass.DxfName.ToUpper()=="ARC")...
or
var arc=myid.GetObject(....) as Arc;
if (arc!=null)
{
....
}