I managed to sort it out, I may have led people astray with session number, it was the model number for the session, e.g. MyParameter:D=MyParameter:x where x is the model sequence number. Here's the code I've used:
c51c4c02ad
In the ocde above 'solid' is the model I used to create the drawing.