Do you attemped to get the location of assembly using api "(double)swMateEnt[i].EntityParams". I tried this api and get the location of an assembly via the first three numbers. But I check it in other 3d software like unity. The location are not same as it in solidworks.I guess it may be the problem of coordinat.
Has anybody encounter the same problem?