Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
i have this code:
//this code is to pickobject
public class sample : IExternalCommand
{
static AddInId appId = new AddInId(new Guid(""));
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
UIDocument uidoc = commandData.Application.ActiveUIDocument;
Document doc = uidoc.Document;
Reference r = uidoc.Selection.PickObject(ObjectType.Element);
Element e = doc.GetElement(r);
return Result.Succeeded;
}
//for some reasons, I want to access e from above method and do something with that object.
public void getdatafrompickobj()
{
}
having the above codes how can I do that?
cheers,
mark
Solved! Go to Solution.