How does your code "open" the parasolid file?
In interactive NX, when you go to file -> open and change the file type to parasolid, NX will create a .prt file in memory and add the geometry from the parasolid file. I don't think you can do assembly operations with this part file until it is saved to disk; a journal would have the same limitations.