Thanks for the help from earlier!
I now undersand how to use the interface components and the symbol constructor as you stated above. My problem now is trying to figure out the syntax for creating an IF statement within Javascript. I'm familiar with VBA using conditionals but javascript is tripping me up. Ideally, I want to be able to select multiple options using drop down lists, and depending on the selection or combination of selections, a button is clicked to pull in a certain symbol that meets the criteria to the artboard.
Button 4 is where I would assume the IF statement would go, but I'm not sure. Most info I've found online is in reference to the web, and this doesn't really fit in that category. Any help would be greatly appreciated.
Here is what I got so far:
var components = {
button: {
type: 'list', label: 'Fill Opening',
value:'10"',
options: ['10"', '13"', '18"']
},
button2: {
type: 'list', label: 'Seam Type',
value:'Two',
options: ['Single Needle', 'Double Needle', 'Knife Edge']
},
button3: {
type: 'list', label: 'Piping',
value:'Yes',
options: ['Yes','No']
},
button4: {
type: 'button',
value:'Create Shell',
onClick: function ()
{var symbol = document.symbols['purpleBox'];
var placedSymbol = new PlacedSymbol(symbol, new Point(237, 358));
}
};
var palette = new Palette('Shell Creation', components);
thanks,
Matt