Exporting Equations to an External File

Next, you export the equation for the pin head diameter D1@Sketch1 to an external file, setting up a link between the model and the file.

  1. In the Equations, Global Variables, and Dimensions dialog box, click Export.
  2. In the Save As dialog box:
    1. Specify a name and location for the text file.
    2. Click Save.
    The Export Equations dialog box appears. By default, all equations are selected for export .

  3. To export only the equation for the pin head diameter, clear all equations in the Equations to Export column except the following:
    "D1@Sketch1"= "Pin Shaft Diameter" + .375 'The pin head diameter is .375 inches bigger than the pin shaft diameter.'
  4. Click Export.
  5. To specify that equations are solved in the correct order, click Automatic solve order.
    Automatic Solve Order automatically sequences the equations in an order determined by the software to produce accurate results. SOLIDWORKS identifies dependencies and orders equations so that independent equations are executed before dependent equations. If equation B is defined as a function of equation A, then equation A must be solved first.

    For example, in the following two equations, the software evaluates "D2@Sketch1@part_inside.Part" first, so it can safely be used as a variable in the equation for "D1@Sketch1@part_outside.Part".

    "D1@Sketch1@part_outside.Part" = "D2@Sketch1@part_inside.Part" + 2
    "D2@Sketch1@part_inside.Part" = "Side" - 6

    You can view the solve order in the Ordered View of the Equations, Global Variables, and Dimensions dialog box.

    You must clear this option to manually change the order of the equations.
  6. Click OK to close the dialog box.