I found the solution:
-for the configs:
boolstatus = Part.Extension.SelectByID2("défaut@Embase confo ORIGIN. SLDPRT", "CONFIGURATIONS", 0, 0, 0, False, 0, Nothing, 0)
boolstatus = Part.ShowConfiguration2("default")
boolstatus = Part.Extension.SelectByID2("Congé2@Embase confo ORIGIN-1@confo ORIGIN", "BODYFEATURE", 0, 0, 0, False, 0, Nothing, 0)
Part.EditSuppress2 to enable a function in such a configuration of the part
Part.ClearSelection2 True
- for registration:
Set swModel = swApp.OpenDoc6("Z:\MACHINE\CONFO\0 confo ORIGINE 3D\confo ORIGINE.sldasm", 2, 0, "", longstatus, longwarnings)
Set Part = swApp.ActiveDoc
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID2("Comfortable header ORIGIN-1@confo ORIGIN", "COMPONENT", 0, 0, 0, False, 0, Nothing, 0)
boolstatus = swModel.ReplaceComponents("Z:\MACHINE\CONFO\" & Range("d1"). Value2 & " embase.sldprt", "", True, True)
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID2("Confo wing ORIGIN-1@confo ORIGIN", "COMPONENT", 0, 0, 0, False, 0, Nothing, 0)
boolstatus = swModel.ReplaceComponents("Z:\MACHINE\CONFO\" & Range("d1"). Value2 & " wing.sldprt", "", True, True)
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID2("Aisle confo ORIGIN-1@confo ORIGIN", "COMPONENT", 0, 0, 0, False, 0, Nothing, 0)
boolstatus = swModel.ReplaceComponents("Z:\MACHINE\CONFO\" & Range("d1"). Value2 & " corridor.sldprt", "", True, True)
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID2("Confo sym corridor ORIGIN-1@confo ORIGIN", "COMPONENT", 0, 0, 0, False, 0, Nothing, 0)
boolstatus = swModel.ReplaceComponents("Z:\MACHINE\CONFO\" & Range("d1"). Value2 & " SYM.sldprt Corridor", "", True, True)
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID2("Reinforcement comfy ORIGIN-1@confo ORIGIN", "COMPONENT", 0, 0, 0, False, 0, Nothing, 0)
boolstatus = swModel.ReplaceComponents("Z:\MACHINE\CONFO\" & Range("d1"). Value2 & " reinforcement embase.sldprt", "", True, True)
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID2("Reinforcement conffunction sym ORIGIN-1@confo ORIGIN", "COMPONENT", 0, 0, 0, False, 0, Nothing, 0)
boolstatus = swModel.ReplaceComponents("Z:\MACHINE\CONFO\" & Range("d1"). Value2 & " SYM.sldprt header reinforcement", "", True, True)
Part.ClearSelection2 True
chemin_enr = swModel.Saveas3("Z:\MACHINE\CONFO\" & Range("d1"). Value2 & ".sldasm", 0, 2)
swApp.CloseDoc (swModel.GetTitle)
Set swModel = swApp.OpenDoc6("Z:\MACHINE\CONFO\" & Range("d1"). Value2 & ".sldasm", 2, 0, "", longstatus, longwarnings)
Set Part = swApp.ActiveDoc
Regards