Hi all,
Please can anybody help.
Where can i find getFirst method, it belongs to what(Autodesk.AutoCAD.What??) ??
coz I am creating my own command that when i double click on a block it will do the following:
[Autodesk.AutoCAD.Runtime.CommandMethod("Details",CommandFlags.UsePickSet)]
public void BlockInfo()
{
Document activeDoc = AcadAPP.DocumentManager.MdiActiveDocument;
PromptSelectionResult res = activeDoc.Editor.SelectImplied();
if (res.Status != PromptStatus.OK)
{
MessageBox.Show("No Objects selected.");
return;
}
if (res.Value.Count != 1)
{
MessageBox.Show("More than one object is selected. \nPlease, select only one object.");
return;
}
ObjectId id=res.Value[0].ObjectId;
......
}
but the problem with that code is activeDoc.Editor.SelectImplied();
it always gives 0 objects selected.
i found in http://www.codeproject.com/useritems/arxref.asp a help document that had this Info:
UsePickSet: When the pickfirst set is retrieved, it is cleared within AutoCAD.Command is able to retrieve the pickfirst set via the method Getfirst().
but I don't know how can i get this method in which library??
thanks in advance 🙂
Noora