Hi.
I have a datagridview with all alignments included in the drawing file.
If I choose an alignment in datagridview, I have Id of that alignment.
I have a button, and I would like that if i press that button then selects that alignment in the drawing(graphic).
I would like that there was only one object selected, and if there are more selected objects before,then un-selected them.
I have seen in internet, the code snipset:
"Autodesk.Autocad.Internal.Utils.SelectObjects(objectId[ ] Ids)"
Is it obligatory that objectId be able a List or array?
and
"Editor,SetImpliedSelection"
But I don´t understand them.
Are threre any full samples about his?.
Thank you.
Solved! Go to Solution.
Solved by joantopo. Go to Solution.
Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor; Autodesk.AutoCAD.DatabaseServices.ObjectId[] arrayId={variables_globales.Idgeneral}; ed.SetImpliedSelection(arrayId);
Solved.