Okay, done. Now you can specify either substrate or nwell under the poly resistor, and create a guard ring in the generated device for either one. Strictly speaking, there is no actual relationship between the voltage connected to the terminal and whether it is a well or substrate, although normally you would tie nwell to power and substrate to ground.