Hello!
About problem 'replaceinstance.sam'.
The way to resolve this: just create new instance at Family table in bolt.prt
The name of new instance must be: PHILLIPS7_8
It is difficult to find the problem, not seeing the code.
Can you share your code, where you call the method from the example? And the model of part with the family table.