A PathItem has a property of strokeDashes which is an array of number.
what Larry said
var idoc = app.activeDocument; var ipath = idoc.selection; // select your path alert(ipath.strokeDashes.toSource()); // read the current dash/gap settings ipath.strokeDashes = [2,3,2,1]; // change it to your needs
Thanks Larry, Carlos,
Carlos, I noticed that the doc is applying the property to a selected path. Is there an approach to create a dash during the drawing portion? Like a setting that makes the pathitem be dashed as its being created.
Or should I just select the line after its created and then apply the dash property?
yes, before you start making paths, set the default stroke like this
idoc.defaultStrokeDashes = [2,3,2,1];
Thanks Much Carlos!