move/copy angle relation to another sketch

I have moved / copied a surface body; translated and rotatedusingtwo separate features.  The first feature is a copy withatranslation, the second is a rotation only.  I would liketodrive the rotation angle of the feature by a"layout" sketchdimension.   The API help saysthe call is rotanglez. But the following equation didnotwork...rotanglez@body-move/copy1=dim1@sketch1... so how can Idothis? equation or another way?

I do not want the user to have to edit the feature to"rotate"it... I want it to be controlled by the"layout" sketch.  Fornow I have used a"constraints" move/copy and constrained thefeature tothe sketch... this works well for this case but others itwillnot.... 

thanks for you time!  it's appreciated!


SolidworksApi macros