i have line ,arc and send command to change to polyline
how to make get value is polyline after send command pedit,in my code still read first selection (line)
i want to make result selection is after pedit how to update this
[CommandMethod("IMP",CommandFlags.UsePickSet|CommandFlags.Modal)]
public void SELECM()
{
var ss = ed.GetSelection();
if (ss.Status != PromptStatus.OK) return;
ObjectId[] myID = ss.Value.GetObjectIds().ToArray();
ed.SetImpliedSelection(myID);
string cmd = "._pedit\n_m\n_p\n\n_Y\n_Join\n\n\n";
doc.SendStringToExecute(cmd, true, false, false);
ed.Regen();
var ss1 = ed.SelectImplied();
if (ss1.Status != PromptStatus.OK) return;
using (var tr = db.TransactionManager.StartTransaction())
{
foreach (SelectedObject s in ss1.Value)
{
var ob = tr.GetObject(s.ObjectId, OpenMode.ForRead) as DBObject;
//[b]this result object is still line[/b]
//[b]how to make update selection result selection is object after has to pedit where is object polyline after send command pedit[/b]
ed.WriteMessage("\nobject type " + ob.GetType().Name.ToString());
}
tr.Commit();
}
}