/***************************************************/ /**** Public Methods ****/ /***************************************************/ public static Loadcase ToLoadcase(this IFLoadcase lusasLoadcase) { Loadcase loadcase = new Loadcase { Name = GetName(lusasLoadcase), Number = lusasLoadcase.getID() }; int adapterNameId = lusasLoadcase.getID(); loadcase.SetAdapterId(typeof(LusasId), adapterNameId); return(loadcase); }
/***************************************************/ internal static int GetAdapterID(IFLoadcase lusasLoadcase, char lastCharacter) { int adapterID = 0; lusasLoadcase.getName(); if (lusasLoadcase.getName().Contains("/")) { adapterID = int.Parse(lusasLoadcase.getName().Split(lastCharacter, '/')[1]); } else { adapterID = lusasLoadcase.getID(); } return(adapterID); }