Forum Replies Created

  • marc lekanu

    December 25, 2022 at 10:13 am in reply to: Moving a property using script

    You’ve made me realise that something was wrong with the loop.

    How the loop was working ?
    It selected one property, then copy it, then selected the group where I want to paste it, then past it.
    And it was looping 50 – 100 times, so it was extremely slow.

    But now all it’s fine, what the loop is doing ?
    It only selects all the properties.
    Then outside of the loop, the script copy the selected property in one go, then select the group, then past it.
    It is now very fast, the problem is resolved !

    Thank you very much Dan Ebberts, without you I don’t think that I would have realised the problem 😃

  • marc lekanu

    December 24, 2022 at 11:56 pm in reply to: Moving a property using script

    Yes, I’ve considered it.

    The .moveTo() method can only modify the index of the property.
    I can use it only with an integer for example :

    ccc[0].property(“Contents”).property(1).moveTo(3);

    Something like that doesn’t work :

    var group50 = ccc[0].property(“Contents”).property(“Group 50”);

    ccc[0].property(“Contents”).property(1).moveTo(group50);

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy