public RevitElement(Element element)
 {
     if (ProjectModelConnect.SelectedRevitModel != null && ProjectModelConnect.SelectedProject != null)
     {
         project            = ProjectProvider.Instance.CurrentProject._id;
         version            = ProjectProvider.Instance.CurrentVersion._id;
         guid               = element.UniqueId;
         name               = element.Name;
         elementId          = element.Id.IntegerValue.ToString();
         category           = element.Category.Name;
         level              = ElementUtils.GetElementLevel(ModelProvider.Levels, element);
         parameters         = ParameterUtils.SerializeRevitParameters(element);
         geometryParameters = ParameterUtils.SerializeGeoParameters(element);
         sharedParameters   = ParameterUtils.SerializeSharedParameters(element, ProjectModelConnect.SelectedRevitModel);
         worksetId          = element.WorksetId.ToString();
         location           = ElementUtils.SerializeLocation(element);
         boundingBox        = ElementUtils.SerializeBoundingBox(element.get_BoundingBox(null));
         centroid           = ElementUtils.SerializePoint(ElementUtils.GetCentroid(element));
         volume             = ElementUtils.GetAllSolidVolume(element).ToString();
         typeId             = element.GetTypeId().ToString();
     }
 }