public static revitElem ModifyElement(ElementJSON JSON, revitDoc doc) { revitElem elem = (revitElem)doc.GetElement(JSON.UniqueId); elem.Name = JSON.Name; foreach (ParameterJSON paramJson in JSON.Parameters) { ParameterJSON.ModifyParameter(paramJson, elem); } return(elem); }
public static string ToJSON(ElementJSON material) { return(Newtonsoft.Json.JsonConvert.SerializeObject(material, Formatting.Indented)); }