/***************************************************/ internal static string GetName(IFBasicCombination lusasLoadCombination) { string loadcaseName = ""; if (lusasLoadCombination.getName().Contains("/")) { loadcaseName = lusasLoadCombination.getName().Substring( lusasLoadCombination.getName().LastIndexOf("/") + 1); } else { loadcaseName = lusasLoadCombination.getName(); } return(loadcaseName); }
/***************************************************/ internal static int GetAdapterID(IFBasicCombination lusasLoadCombination, char lastCharacter) { int adapterID = 0; lusasLoadCombination.getName(); if (lusasLoadCombination.getName().Contains("/")) { adapterID = int.Parse(lusasLoadCombination.getName().Split(lastCharacter, '/')[1]); } else { adapterID = lusasLoadCombination.getID(); } return(adapterID); }