How to view/edit Adobe illustrator Interop Plugin to view SetEntirePath method arguments
===

Okay, the reason I want to do this is because I am trying to write a code that creates lines in illustrator using C#. So far, there is no guide or instruction whatsoever in using the interface. I have gotten baby steps out of looking through javascript instructions, but i have hit a wall... Here is my problem: 

    var applic = new Illustrator.Application(); 
    var doc = applic.Documents.Add();
    var layer1 = doc.Layers.Add();
    var line = doc.PathItems.Add();
    line.Stroked = true;
 
    int[][] pathpoint =  new int [2][];
    pathpoint[0] = new int[2] {220, 275};
    pathpoint[1] = new int[2] { 375, 300 };

    line.SetEntirePath(pathpoint);

I am trying to draw a line here. According to the javascript guide, the SetEntirePath method accepts a jagged array. Unfortunately, it will not accept the array i have created. It will throw an "SafeArrayTypeMismatchException". There is another situation that calls for an array in the position method and i was able to create an acceptable array using an object type: 

    object[] position = new object[]{50,50};
    textframe.Position = position;

 but it does not work with the jagged array. 

If anyone knows of a way to find out what the correct argument type is for the SetEntirePath method or a way to look in the plug in to figure it out on my own (or better yet, find an instructable on how to use C# with AI) I would greatly appreciate it!

Thanks




