Skip to main content
Known Participant
March 13, 2023
Question

How to retrieve list of colours in the document using illustrator sdk 2023 using c++

  • March 13, 2023
  • 2 replies
  • 875 views

Hi all,

How to retrieve list of all colours in the document using illustrator sdk 2023 using c++ with sample example.

This topic has been closed for replies.

2 replies

Legend
March 14, 2023

Perhaps your need is unique, and so you will not find a sample someone has already written. Have you examined the AIColor iterating functions?

Known Participant
March 14, 2023

Hi Test Screen Name,

In Illustrator sdk 2023, there is no member function available in AIColor suite to iterate the function to get a list of colours.

Legend
March 22, 2023

Maybe you can work from the swatch list ...

A. Patterson
Inspiring
March 13, 2023

AIColor. has colour iterating functions, that might be a way to get a list of what's actually in use in the document.

Known Participant
March 14, 2023

Hi A.Patterson,

Thanks for the help!!!

Can you please provide example code of retrieving all colours which are used in the document in illustrator sdk 2023 using c++