I'm having trouble understanding the question. Could you post a screen shot and perhaps a little code?
Hi Bob, thanks for the quick response. Sorry I was not clear enough. So the issue is my panel's "command" requires that a few "SymbolItem" objects be "Expanded." At the moment I simply select the objects "via the AS3 code" and then literally tell the user to go select the "Expand..." option in the drop-down menu, and click a button on the panel once they have done so. I'd like to access the "Expand..." command via my AS3 code in the panel.
Below is a sceen-shot of the Expand option in AI.
PS.. I see that I accidentally wrote "Export" in may post, instead of "Expand". That likely caused some confusion.
~ Clint G.
Forgive my ignorance, what does "Expand" actually do?
I don't see an "expand" method anywhere in AI's scripting DOM, nor do I see a method that will execute an existing application menu. The next question
is to see if there's a way to do what you need without that specific menu command.
Expanding objects enables you to divide a single object into multiple objects that make up its appearance. For example, if you expand a simple object, such as a circle with a solid-color fill and a stroke, the fill and the stroke each become a discrete object. If you expand more complex artwork, such as an object with a pattern fill, the pattern is divided into all of the distinct paths that created it.
You typically expand an object when you want to modify the appearance attributes and other properties of specific elements within it. In addition, expanding objects may be helpful when you want to use an object that is native to Illustrator (such as a mesh object) in a different application that doesn't recognize the object.
In my case I simply need to break the link to each of my "SymbolItem" objects to make them editable on the main timeline. The "Expand..." command breaks the links to every SymbolItem object I have selected in one shot. Really I'd like to know how to tap into any "menu item", not just the "Expand..." command.
I suggest you ask your question on the Illustrator scripting forum. You will probably get better answers there...
I am not as familiar with AI scripting as I am with InDesign, Bridge, or Photoshop. I've looked around and haven't found a way to execute a menu item, nor have I found a way to expand an object.
I would agree with Harbs that the AI scripting forum would be a great place to continue.
Wish I could be more help.
Thank you both...I'll continue my query at the Illustrator Scripting Forum as you suggested.
This issue is all over the AI scripting forum and is completely resolved. Look there for the answer. The in short, consensus is to
1) duplicated the Symbol to "SymbolCopy".
2) add and instance of "SymbolCopy" to a new layer
3) delete "SymbolCopy" (thus leaving behind the SymbolItem now broken and editable).
4) edit what's left on your new layer (what's left is a broken version of your symbol).
The entire thing works around the fact that when you delete a Symbol from a document, the default behavior is to leave it's associated "SymbolItems" in place but broken.
Thanks guys. I should have looked there earlier.
~ Clint G.
That's GREAT! That's what I was talking about with "what does expand do and how can we do it another way..."
Glad it all worked out.