Hot Door CORE Forum

Full Version: AI User Suite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I need to open a file that is in a custom encrypted format. The file will be unencrypted and then the data will appear in a panel similar to doing symbols library -> other library so I can't user the document implementation of file open.

I am trying to use GetFileDialog from the AI User Suite and am trying to acquire the suite. When I include AIUser.h to extern the suite I end up with compiler errors for type redefinition.

How do I acquire the suite correctly?
Sorry for the delay, things have been busy with a new product we're working on.

Anyway, I'm not sure why you'd be getting a type redefinition error. I will take a look at this later in the week and get back to you with more info.
I have gotten this to work in our Skeleton sample project in the manner I would expect (i.e. no workarounds), so I'm curious what you've done with your project that has caused the error(s).

Here are the steps I took:
- Add the Illustrator SDK headers to the Skeleton project and put the path to the SDK headers in the #includes search path.
- #include the SPBasic.h file and AIUser.h file in the skelPlugin.cpp file.
- Extern the SPBasicSuite global with "extern "C" SPBasicSuite* sSPBasic;"
- Declare the AIUserSuite global with "AIUserSuite* sAIUser = NULL;"
- Acquire the AIUserSuite pointer with "sSPBasic->AcquireSuite(kAIUserSuite, kAIUserSuiteVersion, (const void**) &sAIUser);" in the skel:Tonguelugin:Confusedtartup() method.

This compiles, runs, and acquires the suite just fine. If you could try it on your end, that would be helpful. If you still can't resolve the problem, perhaps you could describe what you've done to acquire the suite in your project as well as any compilation errors you receive.
I just thought I would let you know that 0.5.8 has been released, and it supports file save/open dialogs.