Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Are you referring to dashes? CHeck out the stroke panel.
Copy link to clipboard
Copied
But the stroke panel doesn't allow me to specify the parameters I've mentioned.
Copy link to clipboard
Copied
Specifying gaps and dashes does not work?
Copy link to clipboard
Copied
I need to be able to choose the exact number of dashes that I want.
Copy link to clipboard
Copied
OK, that would require some math.
So if you do not want to do that, you would need to create this differently. Do you need to get single lines as a result? Or shapes?
Copy link to clipboard
Copied
I don't mind doing some math if it allows me to achieve my goal.
What do you mean by single lines versus shapes? I need a single dashed circle, with a specific number of equally sized and equally spaced dashes.
Thanks for your help.
Copy link to clipboard
Copied
Other methods would require that you subtract shapes from the circle. Doing so efficiently (and also having the gaps deleted) will create shapes, not open paths. It's not impossible to do, but it will be a manual thing. Unless you find a script to do it (or write one).
Copy link to clipboard
Copied
Thanks for your suggestions.
How would I go about using the math approach you mentioned?
Copy link to clipboard
Copied
If you draw a circle, then in the Document info panel you can see the path length. You need to select Objects from the panel menu.
You should also be able to calculate the length from the radius using the pi integer.
Then you want a specific number of dashes n + you'll need the amount of gaps n-1
Divide the length of the path by that and you have your length.
Copy link to clipboard
Copied
Thanks!
Copy link to clipboard
Copied
It looks like I've been able to achieve a satisfactory result by simply tweaking the the dashes/gaps in the stroke panel.
My question now is: how do I rotate the circle so that the gaps are in a specific place?
Copy link to clipboard
Copied
Several possibilities:
Copy link to clipboard
Copied
Thanks, but I had already tried the rotate options — they do not change the placement of the dashes.
Do options 4 and 5 do this? What do you mean by Transform Effekt?
Copy link to clipboard
Copied
All variants should do this. Do you have selected the circle?
Or do you mean something different?
Copy link to clipboard
Copied
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];
Copy link to clipboard
Copied
I understand that the diameter of the circle will limit the result. The parameters I've mentioned can nevertheless still be specified within these limits.
Thank you for the script. I've never used a script in Illustrator; how do I go about this?
Copy link to clipboard
Copied
… Thank you for the script. I've never used a script in Illustrator; how do I go about this?
By @Thomas22842972ml5u
----------------------------------------------------------------
From Illustrator Scripting Guide:
Installing scripts in the Scripts menu
To include a script in the Scripts menu (File > Scripts), save the script in the Scripts folder, located in the /lllustrator CC/Presets folder in your lllustrator CC installation directory.
The script’s filename, minus the file extension, appears in the Scripts menu.
Scripts that you add to the Scripts folder while Illustrator is running do not appear in the Scripts menu until the next time you launch Illustrator.
Any number of scripts can be installed in the Scripts menu. If you have many scripts, use subfolders in the Scripts folder to help organize the scripts in the Scripts menu.
Each subfolder is displayed as a separate submenu containing the scripts in that subfolder.
Copy link to clipboard
Copied
has your problem been solved?