Unfortunately, I don't think general path duplication can be easily done in HFSS. My best recommendation is to create a series of objects, with the locations determined by your function.
Duplication around an axis will make a circle, and along a line will do a simple vector.