About   |   Getting Started   |   Downloads   |   Documentation   |   Forum


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AI User Suite
01-19-2015, 02:54 PM
Post: #1
AI User Suite
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?
Find all posts by this user
Quote this message in a reply
01-26-2015, 11:09 PM
Post: #2
RE: AI User Suite
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.
Find all posts by this user
Quote this message in a reply
02-04-2015, 12:53 AM
Post: #3
RE: AI User Suite
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::Plugin::startup() 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.
Find all posts by this user
Quote this message in a reply
03-23-2015, 09:16 PM
Post: #4
RE: AI User Suite
I just thought I would let you know that 0.5.8 has been released, and it supports file save/open dialogs.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)