public static Element FromElementId(DB.Document doc, DB.ElementId id) { if (doc is null || !id.IsValid()) { return(null); } if (Category.FromElementId(doc, id) is Category c) { return(c); } if (ParameterKey.FromElementId(doc, id) is ParameterKey p) { return(p); } if (LinePatternElement.FromElementId(doc, id) is LinePatternElement l) { return(l); } return(FromElement(doc.GetElement(id))); }
public Proxy(ParameterKey o) : base(o) { (this as IGH_GooProxy).UserString = FormatInstance(); }
public Proxy(ParameterKey owner) { proxyOwner = owner; (this as IGH_GooProxy).UserString = FormatInstance(); }