UserManual:Variables: Difference between revisions

From Seamly
Content added Content deleted
No edit summary
No edit summary
Line 23: Line 23:
## You can use measurements and custom variables in your formulas. You can only refer to custom variables which are above your current variable. Otherwise you won't get correct results. So double check the order of your variables.
## You can use measurements and custom variables in your formulas. You can only refer to custom variables which are above your current variable. Otherwise you won't get correct results. So double check the order of your variables.


[[File:Seamly2d Variables01.png|center|500x500px]][[File:Seamly2d Variables02.png|center|500x500px]][[File:Seamly2d Variables03.png|center|500x500px]][[File:Advice.svg|left|thumb|50x50px]]Remember: You can't use properties (length, angle, ...) from existing elements such as lines and curves. The calculation in your drawing will break, since those variables will always be 0.
[[File:Seamly2d Variables01.png|center|500x500px]][[File:Seamly2d Variables02.png|center|500x500px]][[File:Seamly2d Variables03.png|center|500x500px]][[File:Advice.svg|left|thumb|50x50px]]'''Important note:'''You can't use properties (length, angle, ...) from existing elements such as lines and curves. The calculation in your drawing will break, since those variables will always be 0.


Maybe in a future version this would be possible
Maybe in a future version this would be possible

Revision as of 21:22, 25 April 2024

Variables

Variables

You can use the variable table for a lot of things, especially for things that change depending on the type of garment you're making, like ease which will change if you’re creating a dress/blouse, or a light jacket, or a warm winter coat. You can use the variables with conditional code to add different amount, depending on the base measurement.

Think of the variables as unique measurements only for one specific project. The variables will generally created on the fly, while creating your drawing, and aren't measured before you start.

Working with variables

  1. To add a variable open the variables table from Measurements ⇒ Variables table (Ctrl+T)
  2. Click on the green plus-button to a new variable
  3. To remove a value, click on the minus-button
  4. To add a formula, click on the -button
  5. To change the order of the variables (important for the formulas), click on the arrow-buttons.
    1. You can use measurements and custom variables in your formulas. You can only refer to custom variables which are above your current variable. Otherwise you won't get correct results. So double check the order of your variables.
Important note:You can't use properties (length, angle, ...) from existing elements such as lines and curves. The calculation in your drawing will break, since those variables will always be 0.

Maybe in a future version this would be possible