Have been trying to do similar. Create a weldment library from a part file with multiple configs.
I am no programmer and after trial and error (many of them) I put together this solution that works for me on SW2011 SP4. X64Bit.
First download a copy of ConfigRipper...
1) Open weldment part file...