【IJCAD】SelectionSetクラス
IJCAD2018以前では、SelectedObject オブジェクトを取得するには get_item() メソッドを使用しなければなりませんでしたが、IJCAD2019 で、SelectionSet クラスにインデクサが実装されたようです。
IJCAD2018以前
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor; PromptSelectionResult res = ed.GetSelection(); if (res.Status != PromptStatus.OK) return; SelectedObject selObj = res.Value.get_Item(0);
IJCAD2019以降
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor; PromptSelectionResult res = ed.GetSelection(); if (res.Status != PromptStatus.OK) return; SelectedObject selObj = res.Value[0];