I have a 'Snake' of rectangles which represent viewport views, each has its own UCS and its own layer. I am attempting to write some code which does the following;
SS1 is selection set of LINE objects residing in layer SHEET1... So when used UCS "entity", you have to specify single entity, not a SS1... Maybe, if you only have 1 rectangle in SHEET1, you'll just need (command "_.UCS" "_Entity" (ssname SS1 0)) supplying last entity from SS1, otherwise CAD won't know on what entity should UCS have to be aligned to... Afterward, you don't need (command "_.PLAN" "") as you set variable 'UCSFOLLOW to 1, but you'll probably need to zoom it again to that particular object - rectangle - use : (command "_.ZOOM" "o" (ssname SS1 0))