Hello all!
I request your help with the following:
I would like to draw a perfect circle, with a specific number of equally spaced cutaways, each of equal size. I also need to be able to specify the amount of the line that is removed by each cutaway.
Essentially, I want to make a circle with a dotted line, as in the attached image. However, I need to be able to specify each of the parameters mentioned above.
Thank you!
By @Thomas22842972ml5u
First of all: What you want is not possible according to logic!
If the circle exists, then you cannot define the number of lines (and the necessary gaps) as well as the length of the lines and the length of the gaps - and at the same time maintain the diameter of the circle.
Assuming that the diameter of the circle is given and should be retained, you can, for example, change the number of lines (and the required gaps) and the length of the lines. The length of the gaps is then a value that results from the calculation.
To get started, here is a simple script that assigns a dashed outline to a selected circle (existing in the Illustrator document). The required number of lines is queried in the dialogue box (I have not included error management).
var aDoc = app.activeDocument;
var aSel = aDoc.selection[0];
var aSelLen = aSel.length;
var amount = prompt ("how many dashes?", 20, "how many dashes?");
var amountDashes = Number (amount);
var lineLen, gapLen = null;
lineLen = Math.round(aSelLen/(amountDashes*2)*10000)/10000;
aSel.strokeDashes = [lineLen];
... View more