<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class="" id="yiv1961787479"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"><div style="" class="" id="yiv1961787479yui_3_16_0_1_1408700087477_2386">Hi gaters,</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;" id="yiv1961787479yui_3_16_0_5_1408700087477_12"><br style="">I don't understand why I can't have the "enableAutoRotation" command doing what I expect in the case of a ring repeater. The particularity of my macro is that the axis of the ring repeater is the line y=+/- x (+/-45° line in the X-Y
plane @ Z=-500mm).<br>(when the axis of the ring is aligned with X, Y or Z, it works).<br><br>My macro is below and two images are attached : without AutoRotation and with AutoRotation: in this latter case, I expect the boxes to be oriented towards the ring axis but it is not what the image showed.<br><br>Any help would be appreciated!<br><br>Thanks,<br><br>Yannick Grondin<br><br><br style="" class=""><br style="" class="">#My macro with the two last lines to be commented or not<br style="" class=""><br style="" class=""><br style="" class="">/gate/world/daughters/name lame2<br style="" class="">/gate/world/daughters/insert box<br style="" class="">/gate/lame2/geometry/setXLength 10 mm<br style="" class="">/gate/lame2/geometry/setYLength 70. mm<br style="" class="">/gate/lame2/geometry/setZLength 20. mm<br style="" class="">/gate/lame2/placement/setTranslation 0. 0. -397. mm<br style="" class="">/gate/lame2/placement/setRotationAxis 0 0 1<br
style="" class="">/gate/lame2/placement/setRotationAngle 45. deg<br style="" class="">/gate/lame2/setMaterial Lead<br style="" class="">/gate/lame2/vis/setColor white<br style="" class="">/gate/lame2/vis/forceSolid<br style="" class=""><br style="" class=""><br style="" class="">/gate/lame2/repeaters/insert ring<br style="" class="">/gate/lame2/ring/setRepeatNumber 20<br style="" class="">/gate/lame2/ring/setPoint1 0. 0. -500. mm<br style="" class="">/gate/lame2/ring/setPoint2 -1. 1. -500. mm<br style="" class="">/gate/lame2/ring/enableAutoRotation<br style="" class="">#/gate/lame2/ring/disableAutoRotation<br style="" class=""></div></div></div></div></div></body></html>