Exemple #1
0
        public static List <PyRevitProduct> ListKnownProducts()
        {
            var products = new List <PyRevitProduct>();

            foreach (PyRevitProductInfo prodInfo in PyRevitProductData.GetAllProductInfo())
            {
                products.Add(new PyRevitProduct(prodInfo));
            }
            return(products);
        }
Exemple #2
0
        public static PyRevitProduct LookupRevitProduct(string releaseOrVersionOrIdString)
        {
            var prodInfo = PyRevitProductData.GetProductInfo(releaseOrVersionOrIdString);

            if (prodInfo != null)
            {
                return(new PyRevitProduct(prodInfo));
            }
            return(null);
        }