What you are describing now and what you described earlier are different. Initially you said you wanted to insert a part into an assembly using a specified configuration. "I would like to automate the process of inserting those part configurations into a assembly file ."
Now you are saying that you want to insert a new configuration into a part. "I have this litle macro that intents to insert a part configuration "
To insert configuration "100" of a file called "PathToPart.sldprt" at the assembly origin you would use: AssemblyDoc.AddComponent4 ( compName, configName, x, y, z) AssemblyDoc.AddComponent4 "pathToPart.sldprt", "100", 0, 0, 0 (insert at origin of assembly)
To add a configuration to a part called "100" you would use: ModelDoc2.AddConfiguration3 ( Name, Comment, AlternateName, Options ) PartDoc.AddConfiguration3 "100", "", "", 0