Updates the value or equation of an existing Global Variable, or creates it if it does not exist.
Property Name | Description |
---|---|
(Name) | The unique name for this task. |
Name | The name of the existing Global Variable to set. |
Value/ Equation | The value or equation to set the Global Variable to. |
The Set Global Variable Generation Task will not be executed if:
The following table shows examples of the ‘Global Variable Name’ and ‘Global Variable Value/Equation’ Properties and their results.
DriveWorks 'Global Variable Name' Property | DriveWorks ‘Global Variable Value/Equation' Property | Result |
---|---|---|
MyGlobalVariable | 123 | The existing Global Variable called "MyGlobalVariable" will have its Value/Equation set to 123 |
MyGlobalVariable | 3.14 | The existing Global Variable called "MyGlobalVariable" will have its Value/Equation set to 3.14 |
MyGlobalVariable | ="17mm" | The existing Global Variable called "MyGlobalVariable" will have its Value/Equation set to 17mm |
MyGlobalVariable | ="""MyOtherGlobalVariable"" * 5" | The existing Global Variable called "MyGlobalVariable" will have its Value/Equation set to "MyOtherGlobalVariable"*5, granted that the Global Variable called MyOtherGlobalVariable does exist in the current model. |
In SOLIDWORKS, if you want the value of a Global Variable called A to be twice the value of a Global Variable called B then this is what you would see in the SOLIDWORKS equation manager:
The Value/Equation of the Global Variable A is set to ="B"*2.
To build this rule in DriveWorks you need to build a string that results in "B"*2.
To do so, you have to use what is called escaping double quotes.
The rule you would have to build in DriveWorks would then be """B""*2".
This would look like this in the property editor:
And it would look like this in the rule builder:
This Task can be added to SOLIDWORKS Parts and Assemblies in the following Generation Sequence(s):