Define Variable and Set Variable Values Difference

Define Variable and Set Variable Values Difference

mwasimakram786
Contributor Contributor
374 Views
2 Replies
Message 1 of 3

Define Variable and Set Variable Values Difference

mwasimakram786
Contributor
Contributor

Hi All

 

I am new in SAC Can someone explain Difference between Define Variable and Set Variable Values in SAC.

And this both which situation we will use.

 

Regard.

0 Likes
Accepted solutions (1)
375 Views
2 Replies
Replies (2)
Message 2 of 3

camden.n.dean
Advocate
Advocate

i haven't been spending much time in SAC recently, but it sounds like:

1) Define Variable: create a new variable and (possibly) assign a value

2) Set Variable Value: assign value to existing variables

 

-camden

Message 3 of 3

ecfernandez
Mentor
Mentor
Accepted solution

Hi @mwasimakram786, I hope you are doing well.

The difference between them is that when you define the variable, you can set a default value you can work with and create your geometry, whereas the set variable value becomes important once you have already defined a variable that needs to be changed to build geometry if something changes.

 

As an example, you can define the thickness of a lane layer as the sum of two input parameters through a variable. However, under certain circumstances of cut or fill height, you might prefer layer thickness to have a different value. For such a task, you would assign the variable (inputparameter1+input parameter2) to the layer thickness. Then, you would evaluate a Decision for testing cut and fill height, so if the value exceeds a defined range, you would use the set variable value to make the layer thickness bigger or smaller.

 

I hope this helps. Best regards!

Camilo Fernández

Civil engineer | Specialist in design, construction, and maintenance of roadways

EESignature

LinkedIn