The command line

In this task, you will run a VB script from the Command Line to set multiple injection points on the model.

  1. Ensure the cushion_3D study used in the previous task is open.
  2. Using the ViewCube click Front View .
  3. Click Geometry, Home tab (Home tab > Create panel > Geometry) to open the Geometry tab.
  4. Click Select Facing Entities, Geometry tab (Geometry tab > Selection panel > Select Facing Entities) to ensure that only the elements facing you will be selected.
  5. Click Select Enclosed Entities, Geometry tab (Geometry tab > Selection panel > Select Enclosed Entities) to ensure that only the elements that are fully enclosed within a banding box will be selected.
  6. Click Circle, Geometry tab (Geometry tab > Selection panel > Circle).
  7. Click and drag the cursor starting at the node in the center to select the nodes and elements shown in the following image.

  8. Click User Interface, View tab (View tab > Windows panel > User Interface) and select Command Line from the drop-down menu.
  9. Type INJPTS_3D and click Go, or press Enter.
    Note: When entering the name of a command script in the Command Line dialog, do not include the file extension (*.vbs).
  10. If you are asked whether you want to Use Injection Face Normal: 0, 0, 1? , click Yes.
  11. When the script has completed, a Completed dialog appears. It states 19 nodes selected . Click OK on this dialog. You should see that injection points have been inserted at all of the nodes you selected.
  12. Click Orbit, View tab Orbit to rotate the image so that you can see the injection points clearly.
    Tip: You can verify that these commands have been run by clicking Action History on the Quick Access toolbar.
  13. If you wish to view the Visual Basic code for this script, locate it using Windows Explorer and open it in a text editor.
    Note: If you installed the software in the default installation directory, the INJPTS_3D script will be located at C:\Program Files\Autodesk\Simulation Moldflow Insight 20xx\data\commands\injpts_3d.vbs.

    This script is one of a set of scripts that are installed automatically. This package of pre-written scripts is stored in the Commands folder. Any VB scripts that you write yourself or record using the Record Macro function are stored by default in the My Documents\My ASMI 20xx Projects directory.

  14. Click Front View, ViewCube Front View on the ViewCube to return the model to the front view.

In the next task, you will learn about the other command line scripts that are installed with the product.

Click the Next topic link below to move on to the next task of the tutorial.