Пример #1
0
        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);
        }
Пример #2
0
 public static string ToJSON(ElementJSON material)
 {
     return(Newtonsoft.Json.JsonConvert.SerializeObject(material, Formatting.Indented));
 }