Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Not sure how the notes in the attributes panel are implemented, but you can use art dictionaries to associate data with art objects:
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
AIArt::SetNote
AIArt::GetNote
AIArt::HasNote
AiArt::DeleteNote