/// <summary> /// /// </summary> /// <param name="parameters"></param> /// <param name="parasiteObject"></param> public static void AddParametersToParasiteObj(ParasiteObject parasiteObject, P_Parameter[] parameters = null) { if (parameters != null) { for (int i = 0; i < parameters.Length; i++) { parasiteObject.AddParameter(parameters[i].ParameterType.ToString(), parameters[i]); } } }
/// <summary> /// /// </summary> /// <param name="parameters"></param> /// <param name="dynSolid"></param> /// <returns></returns> public static ParasiteObject CreateParasiteObject(DynSolid dynSolid, P_Parameter[] parameters = null) { ParasiteObject parasiteObject = new ParasiteObject(dynSolid); if (parameters != null) { for (int i = 0; i < parameters.Length; i++) { parasiteObject.AddParameter(parameters[i].ParameterType.ToString(), parameters[i]); } } return(parasiteObject); }