Details
Revit API Group for share, help and learn always more !
More
Recent Photos
Filter Timeline:
Pinned Items
Recent Activities
  • Mary Bon joined this group
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • mostafa mahmoud joined this group
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Dinesh Kumar joined this group
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  •   Katri Khushi khatri reacted to this post about 3 years ago
    Ever wished you could find out who last edited an element without turning on the Worksharing Display? Try this macro. You can select multiple elements before running or a single element after running it:

    public void GetElementsInfo()
    {
    Document doc = this.ActiveUIDocument.Document;
    UIDocument uidoc = this.ActiveUIDocument;

    string info = "";
    List<ElementId> elemIds = new List<ElementId>();

    if (uidoc.Selection.GetElementIds().Count > 0)
    {
    elemIds = uidoc.Selection.GetElementIds().ToList();
    }
    else
    {
    elemIds.Add(doc.GetElement(uidoc.Selection.PickObject(ObjectType.Element, "Select an Element")).Id);
    }

    foreach (ElementId id in elemIds)
    {
    WorksharingTooltipInfo tooltipinfo = WorksharingUtils.GetWorksharingTooltipInfo(doc, id);
    Element elem = doc.GetElement(id);
    info += "Element Name: " + elem.Name + Environment.NewLine +
    "Creator: " + tooltipinfo.Creator + Environment.NewLine +
    "Last Updated By: " + tooltipinfo.LastChangedBy + Environment.NewLine +
    "Current Owner: " + tooltipinfo.Owner + Environment.NewLine +
    "Requested By: " + string.Join(Environment.NewLine, tooltipinfo.GetRequesters().ToArray()) + Environment.NewLine;
    info += Environment.NewLine;
    }
    TaskDialog.Show("Info", info);
    }
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Amin Azarmi joined this group
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Getuart Dragobuzhda joined this group
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Ivan Nikolov joined this group
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Ivan Nikolov left the group
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Juliana Milanov joined this group
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
There are no activities here yet
Unable to load tooltip content.