1 Reply Latest reply on Jul 2, 2012 11:36 AM by absqua

    How do I set StrokeType?

    alexthebake Level 1

      What I have so far is something along the lines of:

       

      var circle = myPage.ovals.add();

      circle.strokeType = "DashedStrokeStyle";

       

      But that doesn't work. Is it like colors in that I have to select it by name?


      Any help would be greatly appreciated! Thanks

        • 1. Re: How do I set StrokeType?
          absqua Level 4

          You just need to assign either a valid StrokeStyle object or a string that names a valid stroke style.

           

          circle.strokeType = "Dashed (3 and 2)";
          

           

          or

           

          circle.strokeType = doc.strokeStyles.item("Dashed (3 and 2)");
          

           

          Your can see what your options are with:

           

          doc.strokeStyles.everyItem().name;
          

           

          in the console.

           

          Jeff