Parser error in Seamly Me

parser error: Unexpected token “waist_arc_f” found at position 14.

Hello there sorry to bother you, but I have inputted waist_circ and waist_arc_f … I tried adding waist_arc_b which automatically gave me the formula “waist_circ - waist_arc_f” and thats exactly what I need, but I’m receiving the above error message.

Any help please :slight_smile: thank you

1 Like

Correct. Look at the formula for waist_arc_b… what measurments does it use?

waist_circ
waist_arc_f

You can’t subtract from waist_circ if the measurement is not included.

Simple solution is to add waist_circ to the list of measurements… somewhere BEFORE (above) waist_arc_b:

This applies to any measurement Known or Custom, where if there are other measurements in the formula, they have to appesr in the list above it.

For example if I move waist_circ after waist_arc_b… it will also produce the parser error.

This is a common rule in the 2 apps… where any given tool, variable or measurement can only use values from things created before it in the XML file.

For example… since Tools and Custom Variables are created after Measurements, the fx editor will only allow you to use Measurements and Math function in a formula.

while Measurements can be used in Custom Variables (increments)

as measurements are created before the Custom Variables in the pattern file:

3 Likes

Aha okay that was such a simple fix, thank you.

As you can see my waist_arc_f was below waist_arc_b so I’ve moved it up one and it worked a charm.

Really appreciate all your efforts <3

3 Likes

While the waist_arc_b is a special case, as the formula is predefined to calculate the value… I suggest it’s best to use the fx Editor to contstruct your formulas, as you can’t inlcude measurements that don’t exist yet.

Since waist_circ is below waist_arc_b the editor only shows waist_arc_f in the list:

If waist_circ is moved back up, then waist_circ will also appear ithe fx list:

2 Likes