Create Variables from Python Properties

Create variables from an object's Python properties.

  1. On the Home ribbon, select the Variables tool.

    Tip: To find and open a tool, press Ctrl+F. For more information, see Find and Search for Tools.
    The Variable Manager is displayed.
  2. Type a name in the Name column to identify the variable.
  3. In the Value/Expression column, type the name of the object and the Python expression you want to use. The dropdown will display the available Python metadata.

    In this example, we type rocker.mass to display the mass of the part.
    Tip: If you have multiple objects with the same name, you can use the variable name for a part in place of the object name. For example, typing Part_107.mass in the Value/Expression column would have the same effect as typing rocker.mass. To find the variable name for a part, select it in the model browser. In the Property Editor, the Variable Name value for the selected part is displayed in gray below the part name.