• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can we create a document in the UI?

New Here ,
Dec 17, 2009 Dec 17, 2009

Copy link to clipboard

Copied

Hello All,

Is there any API to create a document in the UI? please help me...

TOPICS
SDK

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Dec 18, 2009 Dec 18, 2009

Oh, I get you now. This is something that has been asked about before but usually about getting the preview from another program. You can get a preview of the current, open document but I don't think there's a method exposed for getting one of unopened document. Clearly, AI has that capability, but unfortunately its not in the API, at least that I've ever seen.

Votes

Translate

Translate
Adobe
Guide ,
Dec 17, 2009 Dec 17, 2009

Copy link to clipboard

Copied

AIDocumentList::New() is the one you want!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 17, 2009 Dec 17, 2009

Copy link to clipboard

Copied

AIDocumentList::New( ) function is just create the document and how it can displayed on the UI?

Like sAIPaintStyle->CreateColorEditor(dialog, kPatternnatorDialogID, colorPaletteBounds, &colorPalette);

it creates the color editor in the UI. like this how can we create the document in the UI?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 17, 2009 Dec 17, 2009

Copy link to clipboard

Copied

Sorry, I'm not quite following. Are you just trying to pop the 'New Document' dialog? Because if so, there's a parameters on New() that lets you specify if it shoud show the dialog or not. If you mean something else, you'll have to explain further.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 17, 2009 Dec 17, 2009

Copy link to clipboard

Copied

Its ok, See the attached jpg. The I want to create the document in the red portion of the "MyFiler" UI. any API for this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 17, 2009 Dec 17, 2009

Copy link to clipboard

Copied

You want to embed the UI from the new dialong into your own? If you want that, you'll have to implement the widgets yourself -- AI doesn't provide any of its own dialogs as components. That said, everything in the New Document dialog is accessible through the API.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 18, 2009 Dec 18, 2009

Copy link to clipboard

Copied

see the attached bmp file. this is "Open" dialog in illustrator. The "Open" dialog has a preview window. (look at arrow in the bmp).

I want this type of preview on my plugin dialog.

Preview window is possible in "Open" dialog. whatever the art is there in the .ai file, that art is displaying in the Preview window.

So, it should be possible to create a preview window in my plugin dialog, I think.

How can we do this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 18, 2009 Dec 18, 2009

Copy link to clipboard

Copied

LATEST

Oh, I get you now. This is something that has been asked about before but usually about getting the preview from another program. You can get a preview of the current, open document but I don't think there's a method exposed for getting one of unopened document. Clearly, AI has that capability, but unfortunately its not in the API, at least that I've ever seen.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines