public static void CreateConfig(ModelDoc2 Doc) { ConfigurationManager SwConfigMrg = Doc.ConfigurationManager; Configuration SwConfig2 = SwConfigMrg.AddConfiguration2("形状2", "配置2", "11", 1, "", "描述2", true); Configuration SwConfig3 = SwConfigMrg.AddConfiguration2("形状3", "配置3", "33", 5, "", "描述3", true); Configuration SwConfig4 = SwConfigMrg.AddConfiguration2("形状4", "配置4", "44", 4, "", "描述4", true); Configuration SwConfig5 = SwConfigMrg.AddConfiguration2("形状5", "配置5", "55", 1, "Default", "描述5", true); }