Does anyone know how to select objects after SendStringtoExecute? The best for me is select object using fence or a point.
Here's the part of my code:
foreach (ObjectId objId in NormalblkTblRec)
{
if (objId.ObjectClass.Name == "AcDbArc")
{
Entity en1 = (Entity)trans.GetObject(objId, OpenMode.ForWrite);
Arc arcs = (Arc)(Object)en1;
Point3d[] arcpoints = new Point3d[] { arcs.StartPoint, arcs.EndPoint };
Point3dCollection arcptcol = new Point3dCollection(arcpoints);
doc.SendStringToExecute("_DIVIDE" + "\n", true, false, false);
ed.SelectFence(arcptcol);
}
}
The above code doesn't work. The purpose of this code is to get the coordinates of divisions of each arc (say, 10 divisions). If anyone has a better idea of doing the same purpose feel free to suggest.
Thanks a lot guys!