Complete the code to create a design table that links to an Excel file named 'config.xlsx'.
Dim dt As DesignTable Set dt = swModel.InsertDesignTable2(False, "[1]", 0, 0, 0, 0, 0)
The design table must link to the Excel file 'config.xlsx' to drive configurations.
Complete the code to add a new configuration named 'Config1' to the design table.
dt.AddConfiguration "[1]"
The configuration name to add is 'Config1' as specified.
Fix the error in the code to correctly update the parameter 'Length' to 100 in the design table.
dt.Parameters("Length").[1] = 100
The correct property to set the parameter value is 'Value'.
Fill both blanks to correctly save and close the design table.
dt.[1]() swModel.[2]()
First, save the design table, then close the model to apply changes.
Fill all three blanks to create a design table, add a configuration named 'TestConfig', and set the 'Width' parameter to 50.
Set dt = swModel.InsertDesignTable2(False, "[1]", 0, 0, 0, 0, 0) dt.AddConfiguration "[2]" dt.Parameters("Width").[3] = 50
The design table links to 'config.xlsx', adds 'TestConfig', and sets 'Width' parameter's 'Value' to 50.
