/// <summary> /// Selection to objects list /// </summary> /// <param name="selection"></param> /// <returns></returns> public static List <BaseSessionObject> SelectionToObjects(ISelection selection) { List <BaseSessionObject> buffer = new List <BaseSessionObject>(); while (selection.Next()) { var docObj = selection.GetObject(); buffer.Add(docObj); } return(buffer); }
/// <summary> /// Selection to objects list /// </summary> /// <param name="selection"></param> /// <returns></returns> public static List<BaseSessionObject> SelectionToObjects(ISelection selection) { List<BaseSessionObject> buffer = new List<BaseSessionObject>(); while (selection.Next()) { var docObj = selection.GetObject(); buffer.Add(docObj); } return buffer; }