Solids Builder - VB (Visual Basic) Expressions


All activity property fields that require Visual Basic expressions to be evaluated must be written in the syntax rules of this programming language.

Examples:

Note: to use mathematical functions such as SIN (sine), COS (cosine), Abs (absolute value), etc, you need to add the name Math, as in the examples

Naming rules

It is good practice to assign meaningful names to activities. However, note that activities can be used as arguments for other activities. Therefore, your name need to respect some rules in order to be able to be called as if they were a variable. The rules are as follows:

  1. The names are alphanumeric (accept letters and numbers)
  2. Must not contain special characters
  3. Must start with a letter
  4. Cannot contain spaces
  5. The use of uppercase or lowercase letters does not affect anything, so "NAME" is the same as "name" or "Name"
  6. Names cannot be duplicated
  7. Names cannot be the same as pre-existing property names (eg Name, Description)
  8. Names cannot be VB reserved words (Dim, As, True, While ...)
  9. The names cannot be the same as the names of the section properties. So, if you added the property called Width, you cannot name a tool with this name and vice versa

If the above rules are violated, the program will rename the activity/property. If the execution engine does not work, it will show errors in the "Execution Log" frame