Hi Simon
Here is a sample demonstrating what you are looking for. In this sample, the Triangle symbol from the Palette is added when you run the application. The symbol is resized by changing it''s bounds. Here is the code snippet from the Form''s Load:
//New InsertNodesCmd
InsertNodesCmd insCmd = new InsertNodesCmd();
//Select the Triangle from the PaletteGroupView
this.paletteGroupView1.SelectSymbolModel(this.paletteGroupView1.GroupViewItems[1].Text);
SymbolModel symModel = this.paletteGroupView1.SelectedSymbolModel;
//new NodeCollection
NodeCollection nodes = new NodeCollection();
//Add Symbol to the NodeCollection
if (symModel != null)
{
Symbol triangle = symModel.CreateSymbol();
//Set Size
triangle.Bounds = new RectangleF(100,100,200,200);
nodes.Add(triangle);
}
insCmd.Nodes.Concat(nodes);
insCmd.Location = new Point(125,125);
//Execute the InsertNodesCmd
this.diagram1.Controller.ExecuteCommand(insCmd);
Regards
Arun