In this task, you will run a VB script from the
Command Line
to set multiple injection points on the model.
- Ensure the
cushion_3D
study used in the previous task is open.
- Using the
ViewCube click Front View .
- Click
() to open the Geometry tab.
- Click
() to ensure that only the elements facing you will be selected.
- Click
() to ensure that only the elements that are fully enclosed within a banding box will be selected.
- Click
().
- Click and drag the cursor starting at the node in the center to select the nodes and elements shown in the following image.

- Click
() and select Command Line from the drop-down menu.
- 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).
- If you are asked whether you want to
Use Injection Face Normal: 0, 0, 1?
, click Yes.
- 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.
- Click
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.
- 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.
- Click
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.