Menus "Curves" and "Surfaces" are destroyed now (if they exist) before displaying.
if { [info commands addmenu] == "" } { return }
+global theMenus
+if [info exists theMenus(Curves)] {
+ destroy [string trimright $theMenus(Curves) ".menu"]
+ unset theMenus(Curves)
+}
+
addmenu Curves "Line" {
dialbox line name l origin {0 0 0} direction {1 0 0}
}
if { [info commands addmenu] == "" } { return }
+global theMenus
+if [info exists theMenus(Surfaces)] {
+ destroy [string trimright $theMenus(Surfaces) ".menu"]
+ unset theMenus(Surfaces)
+}
+
proc dialanasurf {command sname args} {
set com "dialbox $command name $sname origin {0 0 0} normal {0 0 1} xdir {1 0 0} "
foreach l $args {append com " $l"}