-
From the 3DEXPERIENCE Operations section of the action bar, click Automation Script
, and drop
it onto the process diagram.
-
In the process diagram, click the Automation Script
adapter to open its shortcut toolbar, and then click
to
open the adapter's editor.
-
From the Select Object options, select
Parameter.
-
Create a parameter for the bottle model used in the structural simulation that
you previously imported.
-
Click
to
search for the bottle model used in the structural simulation that you
previously imported.
-
In the top bar, search for and select PlasticBottleStructural
A.1.
PlasticBottleStructural A.1 is the water bottle
model used in the structural simulation.
The Create New Parameter dialog box
appears and the selected object appears in the Object
Selection field.
-
Enter Structural Product for the parameter's
name.
-
Click OK.
Optimization Process Composer creates an object parameter for the bottle. You can now refer to the
bottle using this parameter, which makes it easy to edit the model later
on, if required.
-
From the Select Object options, confirm that
Structural Product is selected.
-
From the App to open options, select Part
Design.
While the simulation process runs, the Automation Script
adapter uses Part Design to alter the water bottle's midsection geometry.
-
In the VBScript Macro Options section, select
Content from the Macro library
options.
-
From the Macro library section, click
.
-
Search for and select MidsectionChange.
If you have no other macro libraries, this
field
autofills after you click Select.
-
Enter Module1 for the Macro
name.
-
Accept the default name of the Function.
-
Create a parameter to drive the VB module argument, selecting the bottle's
midsection geometry.
-
From Select function argument, click
to create a parameter.
-
Enter MidsectionDesign as the parameter's
name.
-
From the Type options, select
Integer.
-
Enter 1 for the
Value.
-
Accept all other defaults, and click OK.
-
Click Add argument.
The function argument appears in the table.
-
Create an object parameter to represent the midsection of the bottle used in
the structural simulation.
-
Select Capture object in.
-
Click
to create a parameter.
-
Enter Structural Midsection as the parameter's
name.
-
Accept all other defaults, and click OK.
-
From the Capture object in options, confirm that
Structural Midsection is selected.
-
Click OK.
When you run the simulation process later on, the VB module selects
between three different midsection geometries to be used during the structural
simulation. The image below shows three water bottle designs, each with a
different midsection geometry. 
-
In the top-right corner of the 3D area, click the
Process Details panel.
The Process Details dialog box appears,
displaying the name of the simulation process and a description.
-
Rename the simulation process Bottle DOE Simulation
Process, and minimize the dialog box.
-
In the top bar, click Share
, and select to save your work.
|