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

GetNthSymbolPattern for external symbol library

Engaged ,
Oct 02, 2023 Oct 02, 2023

Is there a simple way using the SDK in c++ to find other symbol libraries and access symbols in them? That is, select a symbol library from the Symbol panel's flyout menu, and access symbols there.

 

GetNthSymbolPattern only works for the current document, and GetNthSymbolPatternFromDocument won't work because the external symbol library's document is not actually open.

 

Any suggestions would be much appreciated.

TOPICS
SDK
456
Translate
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 , Oct 02, 2023 Oct 02, 2023

The missing piece you're looking for is AIPathStyle::ImportStyles(). That lets you specify a path to an AI document and gives you an AIDocumentHandle that you can use with the GetNthSymbolPatternFromDocument() function.

Translate
Adobe
Guide ,
Oct 02, 2023 Oct 02, 2023

The missing piece you're looking for is AIPathStyle::ImportStyles(). That lets you specify a path to an AI document and gives you an AIDocumentHandle that you can use with the GetNthSymbolPatternFromDocument() function.

Translate
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
Engaged ,
Oct 02, 2023 Oct 02, 2023
LATEST

Thanks, Andrew, it works perfectly! I wouldn't have expected the answer to be in path styles. At first I wondered if it would open the symbols as another document, but it didn't. I also expected the solution would involve checking each open symbol panel, but that's OK, in this case I need a specific document's symbols.

 

It would be even better if the plugin could now open that document's symbols library in a panel.

 

-- Many thanks!

Translate
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