I've been trying to figure this out as well on my Raise3D N2 for Simplify3D v4, since S3D's slicer prints my part in 33 minutes, while IdeaMaker takes 53 minutes. That's a big deal, since I'm trying to print quite a lot of these. I've tried the code below, and on layer 7 it homes X and Y, raises 50 ...