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); }
/// <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); }