# Change the values of TypeEnum to all capitals

**URL:** <https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626>\
**Category:** Bug Reports\
**Created:** [April 15, 2025, 5:25am UTC](https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626 "2025-04-15T05:25:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cean](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Cean](https://prepomax.discourse.group/u/Cean)\
**Post date:** [April 15, 2025, 5:25am UTC](https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626/1 "2025-04-15T05:25:01Z")

</div>

Hi,

I was trying to import an inp file. It has TOTALS = ONLY. But the program compares to ‘Only’.

Suggesting to change the TypeEnum to all capitals.

Also there is blank around = in TOTALS = ONLY in my file, so always need trim before comparing.

The third thing is when splitting with comma, need to consider the second line only has one RF value in my case, no comma.

Regards,

Cean

```auto
            // U, RF, NT
            //*NODE PRINT, NSET = ConstraintDisplacement003, TOTALS = ONLY
            //RF

```

```auto
namespace CaeModel
{
    [Serializable]
    public enum TotalsTypeEnum
    {
        [StandardValue("Yes", Description = "Sum of external forces is printed in addition to the individual node values.")]
        Yes,
        [StandardValue("Only", Description = "Only sum of external forces is printed.")]
        Only,
        [StandardValue("No", Description = "Only individual node values are printed (default).")]
        No
    }

```

---

<div class="post-metadata">

**Author:** ![jbr](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jbr](https://prepomax.discourse.group/u/jbr)\
**Post date:** [April 15, 2025, 5:35am UTC](https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626/2 "2025-04-15T05:35:32Z")

</div>

That would make it common with the input file readings in fortran (case insensitive)… So, I guess it would be a good idea.

---

<div class="post-metadata">

**Author:** ![Cean](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Cean](https://prepomax.discourse.group/u/Cean)\
**Post date:** [April 15, 2025, 5:49am UTC](https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626/3 "2025-04-15T05:49:02Z")

</div>

I have this example can’t read correctly.

```auto
*STATIC, SOLVER=SPOOLES
 1.0, 1.0, 1.E-5, 1.0

```

Need change in Step.cs.

```auto
    public enum SolverTypeEnum
    {
        Default,
        PaStiX,
        Pardiso,
        Spooles,
        //
        [StandardValue("IterativeScaling", DisplayName = "Iterative scaling")]
        IterativeScaling,
        //
        [StandardValue("IterativeCholesky", DisplayName = "Iterative Cholesky")]
        IterativeCholesky
    }

```

---

<div class="post-metadata">

**Author:** ![Cean](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Cean](https://prepomax.discourse.group/u/Cean)\
**Post date:** [May 7, 2025, 2:46am UTC](https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626/4 "2025-05-07T02:46:05Z")

</div>

@Matej what your think of this suggestion?

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [May 7, 2025, 7:13am UTC](https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626/5 "2025-05-07T07:13:56Z")

</div>

It is a good observation. I changed all calls to `Enum.Parse` in the .inp reader to account for the lettercase using a third parameter. The `TotalsTypeEnum` is now:

> totalsType = (TotalsTypeEnum)Enum.Parse(typeof(TotalsTypeEnum), record2[1].Replace(" ", “”), true);

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [May 16, 2025, 8:32am UTC](https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626/6 "2025-05-16T08:32:51Z")

</div>

Can you confirm this issue is solved?

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [June 12, 2025, 12:09pm UTC](https://prepomax.discourse.group/t/change-the-values-of-typeenum-to-all-capitals/2626/7 "2025-06-12T12:09:52Z")

</div>


