Convert AI file to XY (Z?)

Ask a Question related to Adobe Illustrator Macintosh, Design and Development.

  1. #1

    Default Convert AI file to XY (Z?)

    Hello,
    I am quite comfortable using Illustrator 10 in OS X on my G4 and would like to extend it's capabilities. Therefore I am interested in learning how to convert an AI file that is a trace of a line on a graph into raw data (X,Y).
    So, I import a graph as a tiff into AI that has some X and Y scale. I then scale the image to have the same origns as the ruler and to have the same units (scale) as the rulers. Then I can draw Illustrator points where the data points are. What I want to know is if I can then export the file into some ASCII format where I can then just search for the data points to import them into some other graphical package. So for example a point at pixel 200 and pixel 200 of the workingspace will have a X value of 200 and Y value of 200 in some ASCII file. Z optionally could be the RGB values of that point. Any help or guidance on where I can redirect this query would be gratefully appreciated.
    Thanks,
    Chris
    Chris_Guzofski@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. convert a file from pdf version 1.4 to 1.3.Originally an Indesign file
      is it possible to convert a file from pdf version 1.4 to 1.3. Originally it was an Indesign file. Many thanks in advance
    2. Best way to convert 3gpp file into a flv file?
      Hi Whats the best way to convert a 3gpp file into a flv file? I assume that flv is a common file type which would work on most browsers? Is...
    3. What is the best way to convert an InDesign file to an Illustrator file??
      When I try exporting as an eps, all the images have been broken up into non colored pieces and the fonts are screwed up? I just want everything to...
    4. convert an flv file
      Hello all, Does anyone know a way to convert flv video files to another standar format? (AVI, MPEG, WMV)? I'm actually interested more in the...
    5. and EZ way to convert XLS file to CSV?
      OK, I'm painted into a corner by Bill G again.. This time with XL, yet another package NIH by Microsoft but still controlled by them... If I bop...
  3. #2

    Default Re: Convert AI file to XY (Z?)

    You may want to try something like this:
    Create the file as you described above. Create a new layer named "graph data layer" and move your traced data points to that layer. Save the file with compression and PDF compatibility off. Open the AI file with TextEdit and use the Find function to search for the layer name. You should find something like this:

    %AI5_BeginLayer
    1 1 1 1 0 0 1 1 255 79 79 0 3 0 Lb
    (graph data layer) Ln
    %_/ArtDictionary :
    %_/XMLUID : (graph_data_layer) ; (AI10_ArtUID) ,
    %_;
    %_
    0 A
    0 Xw
    0 Ap
    0 O
    0 0 0 0 k
    0 R
    0 0 0 1 K
    0 1 0 0 0 Xy
    0 J 0 j 1 w 4 M []0 d
    0 XR
    0 0 m
    33.0508 19.4912 l
    90.6777 28.8135 l
    102.5425 28.8135 111.8643 37.2881 v
    121.186 45.7627 146.6099 77.1182 y
    160.1694 110.1689 l
    163.5591 130.5083 l
    165.2539 177.1182 l
    168.644 188.9824 l
    174.5762 190.6777 l
    183.0508 192.3726 l
    193.2202 194.0674 l
    200.0005 200 l
    B

    Where "0 0 m" is the first data point at 0x, 0y. If you get line with more than two values (like the third and fourth lines after "0 0 m") it means you dragged a curve point with the pen tool when you were creating the data points. Copy the list of XY points into a new text file, delete the letter at the end of each line and HeyPresto! you've got an ASCII file of your data points.
    Douglas_Habben@adobeforums.com Guest

  4. #3

    Default Re: Convert AI file to XY (Z?)

    Hi Douglas,
    That worked so well it is crazy. This will keep me on my Mac and away from the super expensive and cumbersome digitizing tools we have for this. Thanks so much!
    Yours Truly,
    Chris
    Chris_Guzofski@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139