2

I have 167 coordinate points (origin is the left lower corner of a sheet) in which I need to place a circle, the center of it.

Is there any way to create those circles (15 mm diamater) automatically in Illustartor or Indesign to the specific loctions related to the origin?

Or do I need to input all those "coordinates" manually?

  • Do you want to make 167 circles? – WELZ Apr 12 at 12:48
  • Basically yes and all of them in specific location in a sheet, with numbers in each and every one; it will be a complex drill template to use later on after we print it out. – Arazzo Apr 12 at 12:50
  • Do you have anchor points at all of your coordinates already? – WELZ Apr 12 at 12:50
  • No, at the moment I just have a blanc sheet and I am trying to avoid inputing all those 167 x,y places manually for every circle. – Arazzo Apr 12 at 12:52
  • I do a have an excel sheet with all the locations marked with the correct circle number. – Arazzo Apr 12 at 12:52
2

You can use this script Dup At Selected Anchors.jsx to place a path at every one of your anchor points.

You just place your source shape (circle) in the foreground and it will duplicate it at all of the selected anchor points.


To add your anchor points, use a script such as this one to add anchor points at selected coordinates:

var piRef = activeDocument.pathItems;
{
    var pathRef = piRef.add();

    pathRef.setEntirePath( new Array(
                new Array(617.943,-723.929),
                new Array(722.168,-640.831),
                new Array(558.789,-530.971),
                new Array(322.168,-252.098) ) ) ;
}

Make sure you have only one coordinate per line and then just use find and replace in your favorite text editor (I used Notepad++) and add to the beginning of your line (^ in regex):

new Array(

and to the end of the line ($ in regex)

),

Then just correct the last line.


With this script you will have a huge jungle of lines going everywhere, but the anchor points will be in the correct position, then you can run the script from the beginning of the answer and that will place your circle on every anchor point.

gif

  • Hmm... I must be doing something wrong, since I get: Error 1220: Illeagal Argument Line 5: -> pathRef.setEntirePath( new Array( – Arazzo Apr 12 at 13:50
  • What is the code you used? – WELZ Apr 12 at 13:50
  • You can email it to me or post a screenshot. – WELZ Apr 12 at 13:53
  • You have to use . not , for decimals. Like: new Array(238.2,458.7), – WELZ Apr 12 at 13:55
  • 1
    The script assumes that units are PIXELS, so initial work/placement has to be made using pixels as units, then change units what ever you want and scale/transform work to desired size. Other than that, it works exactly like I wanted, thank you, WELZ! – Arazzo Apr 15 at 8:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.