This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial_1-creating_the_model_objects [2020/02/19 16:47] ecoloco |
tutorial_1-creating_the_model_objects [2023/03/13 13:03] (current) dmytroh |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Tutorial 1-Creating the model objects ====== | + | ====== Tutorial 1 - Creating the model objects ====== |
Line 7: | Line 7: | ||
**Creating a project** | **Creating a project** | ||
- | - Create a new project by clicking the {{: | + | - Create a new project by clicking the {{: |
- | - Make sure that the [[Modeling_layout|Modeling layout]] is visible by clicking the {{: | + | - Make sure that the [[Modeling_layout|Modeling layout]] is visible by clicking the {{: |
\\ | \\ | ||
Line 39: | Line 39: | ||
- Make sure that the [[Blocks_window|Blocks window]] is visible by selecting **Window | Blocks** from the [[Menu_bar|Menu bar]]. The window should list the three [[Block|Block]]s that you have already created: //Income//, //Sales// and //Fees//. | - Make sure that the [[Blocks_window|Blocks window]] is visible by selecting **Window | Blocks** from the [[Menu_bar|Menu bar]]. The window should list the three [[Block|Block]]s that you have already created: //Income//, //Sales// and //Fees//. | ||
- | - Either select “Expression” from the **Type** drop-down list and click the {{: | + | - Either select “Expression” from the **Type** drop-down list and click the {{: |
- In the table, click the **Name** field for the newly created [[Expression|Expression]] and write “Profit”. | - In the table, click the **Name** field for the newly created [[Expression|Expression]] and write “Profit”. | ||
- Next, click the **Value** field for the [[Expression|Expression]] and write “Income - Expenses”. Like before, Ecolego will discover unknown objects when you click //Enter//. The unknown object is “Expenses”; | - Next, click the **Value** field for the [[Expression|Expression]] and write “Income - Expenses”. Like before, Ecolego will discover unknown objects when you click //Enter//. The unknown object is “Expenses”; | ||
Line 54: | Line 54: | ||
**Using the [[Expression_editing_tool|Expression editing tool]]** | **Using the [[Expression_editing_tool|Expression editing tool]]** | ||
- | - Instead of writing the expression | + | - Instead of writing the equation |
- Make sure that the **Values** tab is selected. | - Make sure that the **Values** tab is selected. | ||
|Note|Instead of double-clicking income, try to use auto-completion: | |Note|Instead of double-clicking income, try to use auto-completion: | ||
- | - Click the **Expression** field of the table. The [[Expression_editing_tool|Expression editing tool]] will appear to assist you when writing the expression. As you see, there is a list of all [[Block|blocks]] of your model. Double-click //Income// to add it to the expression. Click the asterix (’*’) on the key-pad, and then write “TaxRate” so that the full expression becomes “Income * TaxRate”. When you press //Enter// and the “Unknown values” window appears, select “Parameter” for // | + | - Click the **Equation** field of the table. The [[Expression_editing_tool|Expression editing tool]] will appear to assist you when writing the expression. As you see, there is a list of all [[Block|blocks]] of your model. Double-click //Income// to add it to the expression. Click the asterix (’*’) on the key-pad, and then write “TaxRate” so that the full expression becomes “Income * TaxRate”. When you press //Enter// and the “Unknown values” window appears, select “Parameter” for // |
- Click **Ok** to close the windows.\\ | - Click **Ok** to close the windows.\\ | ||
\\ | \\ |