示例#1
0
        protected override void OnExecuted(EventArgs e)
        {
            base.OnExecuted(e);

            var renameDialog = new GetStringDialog("Rename Block");

            if (renameDialog.ShowModal() == DialogResult.Ok)
            {
                var doc = RhinoDoc.ActiveDoc;

                Actions.RenameInstanceDefinitions(_definitions, doc, renameDialog.StringResult);
                doc.Modified = true;
            }
        }