Community
Solved! Go to Solution.
Solved by Ajilal.Vijayan. Go to Solution.
Like this ?
The below code I copied from here
Preventing AutoCAD objects from being selected
void OnSelectionAdded(object sender, SelectionAddedEventArgs e) { Document doc = Application.DocumentManager.MdiActiveDocument; Editor ed = doc.Editor; ObjectId[] addedIds = e.AddedObjects.GetObjectIds(); for (int i = 0; i < addedIds.Length; i++) { ObjectId oid = addedIds[i]; ed.WriteMessage("Selected Item : " +(oid.ObjectClass.DxfName)); } }
Can't find what you're looking for? Ask the community or share your knowledge.