Skip to main content
Silly-V
Legend
April 22, 2015
Answered

document.variables.removeAll()

  • April 22, 2015
  • 1 reply
  • 595 views

Using CS5, I would like to remove all the variables that show up in a document variables panel, so that new ones can be put in without any errors happening. But, the act of removing them causes an Illustrator error. Upon closer inspection in the OMV, document.variables is a read-only item. Why is there a removeAll(), at all, or are there any other ways to achieve this goal?

This topic has been closed for replies.
Correct answer CarlosCanto

I have had the same issue with other collections raising errors using removeAll() as well, I just tried removing all dataSets and that works fine, so not all readOnly collections have this problem.

for variables, loop through them and remove them one by one.

1 reply

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
April 22, 2015

I have had the same issue with other collections raising errors using removeAll() as well, I just tried removing all dataSets and that works fine, so not all readOnly collections have this problem.

for variables, loop through them and remove them one by one.