Code: Select all
var selected = Selection.Item(0).SubComponent.ComponentCollection;
var testArray = new Array();
testArray.push(23,25,76,54);
AddToSelection(Selection(0).Name+".edge["+testArray+"]", null, true);
I have one script that has part of code like above. Script works OK in 2012 but I was informed that it does not work in 2013. I do not have access to 2013 so I can not check it by myself. Problem is that when you execute it, it shows in viewport that new edges are selected but it does not select them actually. Could anyone that have 2013 just copy paste this code and execute it to confirm? Make sphere, select one edge and execute script. When I execute this code in SI2012 it works OK.
What I manage to figure out that first line is causing this, when that is commented it works as expected.
Is there something specific I need to do so script works in 2013?