コード例 #1
0
        GetNameList(this cPointObj obj)
        {
            int NumberNames;

            NumberNames = default(int);
            string[] MyName;
            MyName = default(string[]);
            var res = obj.GetNameList(ref NumberNames, ref MyName);

            return(NumberNames, MyName);
        }
コード例 #2
0
        /// <summary>
        /// ids = null returns all nodes in model
        /// </summary>
        public static List <Node> ToBHoM(this cPointObj pointObj, List <string> ids)
        {
            List <Node> bhNodes   = new List <Node>();
            int         nameCount = 0;

            string[] nameArr = { };

            if (ids == null)
            {
                pointObj.GetNameList(ref nameCount, ref nameArr);
                ids = nameArr.ToList();
            }

            foreach (string id in ids)
            {
                bhNodes.Add(pointObj.ToBHoM(id));
            }

            return(bhNodes);
        }