Exemplo n.º 1
0
        public static ElementId FromElementId(Part doc, Tag id)
        {
            if (id == Tag.Null)
            {
                return(null);
            }

            if (Category.FromElementId(doc, id) is Category c)
            {
                return(c);
            }

            if (ParameterKey.FromElementId(doc, id) is ParameterKey p)
            {
                return(p);
            }

            if (Element.FromElementId(doc, id) is Element e)
            {
                return(e);
            }

            return(null);
        }
Exemplo n.º 2
0
 public Proxy(ParameterKey o) : base(o)
 {
     (this as IGH_GooProxy).UserString = FormatInstance();
 }