Complete the code to create a new configuration named 'Config1'.
partDoc.ConfigurationManager.AddConfiguration2("[1]", "", "", 0, "", "")
The method AddConfiguration2 requires the configuration name as the first argument. Here, 'Config1' is the correct name to create.
Complete the code to activate the configuration named 'Config2'.
partDoc.ShowConfiguration2("[1]")
The method ShowConfiguration2 activates the configuration by its name. Here, 'Config2' is the target configuration.
Fix the error in the code to delete the configuration named 'Config3'.
partDoc.ConfigurationManager.[1]("Config3")
The correct method to delete a configuration is RemoveConfiguration. Other options are invalid and cause errors.
Fill both blanks to create a configuration named 'Config4' with a description 'Test config'.
partDoc.ConfigurationManager.AddConfiguration2("[1]", "[2]", "", 0, "", "")
The first argument is the configuration name, 'Config4'. The second argument is the description, 'Test config'.
Fill all three blanks to rename configuration 'OldConfig' to 'NewConfig' and set it active.
config = partDoc.ConfigurationManager.[1]("OldConfig") config.Name = "[2]" partDoc.ShowConfiguration2("[3]")
Use GetConfigurationByName to get the configuration object. Then set its Name property to 'NewConfig'. Finally, activate it with ShowConfiguration2 using 'NewConfig'.
