2 Replies Latest reply on Oct 24, 2014 5:36 AM by Joydeep Ray

    Tutorial Sample not running

    Joydeep Ray

      Hi,

       

      I am very new to both Illustrator SDK and Adobe Illustrator software as well. My objective is to develop an illustrator plug-in for processing some eps file (for some other application). I downloaded the Illustrator SDK and tried to build the samples using Visual Studio Express Edition 2012. I got stuck as the samples seem to have used the MFC header file <afxres.h>, which is not included in VS 2012 Express Edition. Another forum member kindly pointed out that the samples do not use any MFC and advised me to replace afxres.h by windows.h. After this change I could build all the samples successfully. However, when I am running the Illustrator, I could not properly execute the main Tutorial (and several other) plug-in. For Tutorial, I see a menu option "Object->Filters->SDK->Tutorial..." coming and it gets enabled if I open a file in Illustrator. However, when I click this option nothing seems to happen (As per Adobe Start-up Guide, I should see a modal dialog box coming up), Same thing is happening in several other sample plug-ins like SnippetRunner, TransformButton, Webter etc., all of which are supposed to open a panel, but does not seem to be doing anything. However, some other plug-ins like Annotator, Multi-Arrow Tool, MenuPlay etc., which does not open a panel or dialog box but are related to user interface, are functioning properly. What can be the reason of this strange behavior? Is there any Illustrator option, which is preventing these panels from being created? Or is it somehow related to the afxres.h issue? I really think it is the first and being absolutely novice to Illustrator, I am missing out some obvious setting or something. Any help will be greatly appreciated as I really need to see the Tutorial sample as it has some functionality I want to use.

       

      Thanks in advance,

      Joydeep Ray

        • 1. Re: Tutorial Sample not running
          LeoTaro Level 4

          Hello, it's me again. It's a bit quiet round here at the moment, I don't know what has happened to Mr Patterson. Also people are less likely to answer if you don't mark any of your replies as useful or correct.

           

          Anyway, the plugins that are not working have a separate ui component. These are in a separate folder, e.g. the SnippetRunner sample has the SnippetRunner folder containing the code to build the binary plugin and a SnippetRunnerUI folder for the ui component. The CC SDK includes the built installer for the ui components. These are zxp files that you install using the Adobe Extension Manager. I think the 2014 SDK only includes the source so you have to build it with Flash Builder (or just get the built versions from the CC SDK).

          • 2. Re: Tutorial Sample not running
            Joydeep Ray Level 1

            Hi Leo,

            Many thanks for your answer. I also tried to debug the tutorial application today and noted the presence of these ...UI folder with the css, JavaScript files in them. I was wondering how to include them in the final output. Your reply has been very helpful. However, I don't see any .zxp file in my Adobe Illustrator SDK or even Adobe Illustrator installation. There is a .mxi file in each UI folder (e.g. TutorialUI.mxi). May be this is the installer. I will check with Adobe Extension Manager, which also I don't seem to have. Anyway, after going through the source code of the Tutorial code, I have understood some of the things previously unclear to me. So, I will leave installing these extensions and concentrate on my main task of opening and processing .eps files from a FileFormat plug-in, as you suggested.

            Best

            Joydeep