DesignSeries00051.pngAdding User-defined Simple Beam Units

The following example shows how to add to the list of available units for the Simple Beam command.

To add to the list of units for the Simple Beam command:

  1. Make a backup copy of the GetUserData.vss file located in Plug-Ins\VW_Mech\Includes. Keep the backup copy in case there is a need to restore the GetUserData.vss file to its original state.

  2. Open the GetUserData.vss file in any word processor and locate group 1 in the getUserString function.

  3. Using the next available sequential number, add the new Units to the end of the list (in this example, Yards). Enclose the name in single quotes and put a semi-colon at the end of the line. The new line should read:

  4. 6: getUserString := ‘Yards’;

  5. Locate group 2 in the getUserString function.

  6. Using the next available sequential number, add the new Units to the end of the list. (In this example, type yard in the singular form; this value is used in certain output for the Simple Beam command and must have an entry corresponding to the same item in group 1).

  7. Enclose the name in single quotes and put a semi-colon at the end of the line. The new line should read:

    6: getUserString := ‘Yard’;

    sb_String.png 

  8. Locate group 1 in the getUserData function.

  9. Using the next available sequential number, add the new Units to the end of the list (in this example, units per inch of a yard: 1/36). The sequential number added here must correspond to the number added in the getUserString function. Put a semi-colon at the end of the line; do not enclose the name in single quotes. The new line should read:

  10. 6: getUserData := 1/36;

  11. Change the value of item 0 to the new group number, which indicates the number of available values (in this example, 6).

  12. sb_Data.png 

  13. Save the file. The next time the Simple Beam command is used, the new item is available in the Beam Properties dialog box.

This change also affects the Shaft properties of the Shaft Analysis command. These values are also used by the Spring Calculator Units, but only items 1, 3, and 4 are applicable, so the new units (Yards) will not show up in this field.

 

vectorworks.net