[CommandMethod("LLA")]
public static void 选择1()
{
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
PromptEntityResult ent = ed.GetEntity("\n 请选择直线");
ObjectId id = ent.ObjectId;
//Line3d line = (Line3d)id.GetObject(OpenMode.ForRead);
//上一行是我想要的效果,不知道怎么实现?如果能实现,我就可以调用SelectOnLine(line)函数了。
}