Skip to main content
Known Participant
September 12, 2017
Question

How to access the Attributes Panel

  • September 12, 2017
  • 1 reply
  • 6602 views

Hi,

We need to create a plugin that iterates through all text elements in the .ai file and fills in the the table cells (in the figure) based upon the row and column header strings which can vary for each file.

We need to store some kind of tag info somewhere that will denote elements (specify row and column headers) that are to be updated in the .ai file. We are thinking we could use the notes field in the Illustrator attributes panel to store that tag info. (see attached figure)

Using the API, is there a way to be able to read info from the illustrator attributes panel. If not, can you suggest some other way to store tags in order to be able to identify text elements to be updated?

Thank you,

Samee.

This topic has been closed for replies.

1 reply

Inspiring
September 13, 2017

Not sure how the notes in the attributes panel are implemented, but you can use art dictionaries to associate data with art objects:

Re: How do I attach a AIDictionary to an art object?

Known Participant
September 14, 2017

Thank you for your response!

Actually, the scenario is that the client will run our plugin for various .ai files, each having a different set of row and column headers (e.g. row headers might be "Postition:", "Signature", etc and column headers might be "Brand Manager", "Marketing Director", "Product Engineer" etc). So we'll have to ask the client to store these header strings somewhere that can be accessed via the SDK. We were hoping the notes section in the Attributes Panel would serve this purpose. If not, is there some other SDK-accessible section that we can suggest the client to store the header info in?

Inspiring
September 18, 2017

AIArt::SetNote

AIArt::GetNote

AIArt::HasNote

AiArt::DeleteNote