Author Topic: Solved: AutoCAD vs AutoCAD LT Menu Difficulties  (Read 5652 times)

0 Members and 1 Guest are viewing this topic.

Kate M

  • Guest
Solved: AutoCAD vs AutoCAD LT Menu Difficulties
« on: September 12, 2005, 02:17:25 PM »
Okay, I'm stumped:

I have a custom menu that I'm trying to load in both LT and full. It has one pull-down and two toolbars. No matter what I do, I can't get everything to load in both versions at the same time. I have two other custom menus, pull-down only, that load just fine. But with this one, the toolbars don't like to load in LT for some reason...grr! Has anyone seen this before? I can post the menu if that'll help.
« Last Edit: September 13, 2005, 03:22:28 PM by M-dub »

M-dub

  • Guest
Re: Menu Load
« Reply #1 on: September 12, 2005, 02:27:32 PM »
Yes, it would help if you posted it.

Is it a full menu or a partial menu?

Kate M

  • Guest
Re: Menu Load
« Reply #2 on: September 12, 2005, 02:31:33 PM »
Partial...'cause it's loaded in addition to other menus (right?).

It's just a bunch of layer tools...here 'tis:

Code: [Select]
//
//      AutoCAD menu file - J:\Menus\rsa_menu.mns
//

***MENUGROUP=RSA_MENU

***POP1
ID_MNLT_layers  [Layer Tools]
ID_LAYCHG       [Change Object's Layer]^C^C_select;\_change;p;;p;la;$m=$(getvar,clayer);;
ID_LAYISO       [Isolate Layer]^C^C_ai_molc;\_-layer;off;*;n;;
ID_LAYON        [All Layers On]^C^C_-layer;on;*;;
ID_LAYOFF       [Turn Layer Off]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$M=$(getenv,oldlayer);_off;$M=$(getvar,clayer)";;
ID_LAYTHW       [Thaw All Layers]^C^C_-layer;thaw;*;;
ID_LAYFRZ       [Freeze Layer]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_freeze;$m=$(getvar,clayer)";;
ID_LAYLCK       [Lock Layer]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_lock;$m=$(getvar,clayer)";;
ID_LAYULK       [Unlock Layer]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_unlock;$m=$(getvar,clayer)";;

***TOOLBARS
**TOOLS1
TAG1           [_Toolbar("Tools1", _Floating, _Show, 100, 380, 1)]
TAG2           [_Button("Set Linetype Scale", "lts.bmp", "lts.bmp")]^C^Cltscale;$M=$(*,$(getvar,dimscale),0.5)

**LT_Layers_TOOLBAR
ID_LTX_LAYERS   [_TOOLBAR("LT Layer Tools",_Floating,_Show, 187, 170, 1)]
ID_LAYISO       [_Button("Isolate Layer", "layiso16.BMP", "layiso24.BMP")]^C^C_ai_molc;\_-layer;off;*;n;;
ID_LAYOFF       [_Button("Turn Layer Off", "layoff16.BMP", "layoff24.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$M=$(getenv,oldlayer);_off;$M=$(getvar,clayer)";;
ID_LAYON        [_Button("All Layers On", "layon16.BMP", "layon24.BMP")]^C^C_-layer;on;*;;
ID_LAYFRZ       [_Button("Freeze Layer", "layfrz16.BMP", "layfrz24.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$M=$(getenv,oldlayer);_freeze;$M=$(getvar,clayer)";;
ID_LAYTHW        [_Button("Thaw All Layers", "laythw16.BMP", "laythw24.BMP")]^C^C_-layer;thaw;*;;
ID_LAYLCK       [_Button("Lock Layer", "laylck16.BMP", "laylck24.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_lock;$m=$(getvar,clayer)";;
ID_LAYULK       [_Button("Unlock Layer", "layulk16.BMP", "layulk24.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_unlock;$m=$(getvar,clayer)";;
                [--]
ID_LAYCHG       [_Button("Change Object's Layer", "laychg16.BMP", "laychg24.BMP")]^C^C_select;\_change;p;;p;la;$m=$(getvar,clayer);;

***HELPSTRINGS
TAG2           [Sets LTSCALE = 0.5 x DIMSCALE]

ID_LAYISO       [Isolate layer of selected object]
ID_LAYOFF       [Turn off layer of selected object]
ID_LAYON        [Turn all layers on]
ID_LAYFRZ       [Freeze layer of selected object]
ID_LAYTHW       [Thaw all layers]
ID_LAYLCK       [Lock layer of selected object]
ID_LAYULK       [Unlock layer of selected object]
ID_LAYCHG       [Move selected object to current layer]

//
//      End of AutoCAD menu file - J:\Menus\rsa_menu.mns
//

Kate M

  • Guest
Re: Menu Load
« Reply #3 on: September 12, 2005, 02:32:10 PM »
Just noticed the nifty code window -- pretty neat. :-)

M-dub

  • Guest
Re: Menu Load
« Reply #4 on: September 12, 2005, 02:43:59 PM »
Ok, give this a try...Not sure if it will make any difference, but...it worked on my machine.( 2k4 )

Code: [Select]
//
//      AutoCAD menu file - J:\Menus\rsa_menu.mns
//

***MENUGROUP=RSA_MENU

***POP1
**[&Layer_Tools]
[&Change Object's Layer]^C^C_select;\_change;p;;p;la;$m=$(getvar,clayer);;
[&Isolate Layer]^C^C_ai_molc;\_-layer;off;*;n;;
[&All Layers On]^C^C_-layer;on;*;;
[&Turn Layer Off]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$M=$(getenv,oldlayer);_off;$M=$(getvar,clayer)";;
[T&haw All Layers]^C^C_-layer;thaw;*;;
[&Freeze Layer]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_freeze;$m=$(getvar,clayer)";;
[&Lock Layer]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_lock;$m=$(getvar,clayer)";;
[&Unlock Layer]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_unlock;$m=$(getvar,clayer)";;

***TOOLBARS
**TOOLS1
ID_TbTools [_Toolbar("Tools1", _Floating, _Show, 100, 380, 1)]
ID_TAG2 [_Button("Set Linetype Scale", "lts.bmp", "lts.bmp")]^C^Cltscale;$M=$(*,$(getvar,dimscale),0.5)

**LT_Layers_TOOLBAR
ID_LTX_LAYERS   [_TOOLBAR("LT Layer Tools",_Floating,_Show, 187, 170, 1)]
ID_LAYISO       [_Button("Isolate Layer", "layiso16.BMP", "layiso24.BMP")]^C^C_ai_molc;\_-layer;off;*;n;;
ID_LAYOFF       [_Button("Turn Layer Off", "layoff16.BMP", "layoff24.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$M=$(getenv,oldlayer);_off;$M=$(getvar,clayer)";;
ID_LAYON        [_Button("All Layers On", "layon16.BMP", "layon24.BMP")]^C^C_-layer;on;*;;
ID_LAYFRZ       [_Button("Freeze Layer", "layfrz16.BMP", "layfrz24.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$M=$(getenv,oldlayer);_freeze;$M=$(getvar,clayer)";;
ID_LAYTHW        [_Button("Thaw All Layers", "laythw16.BMP", "laythw24.BMP")]^C^C_-layer;thaw;*;;
ID_LAYLCK       [_Button("Lock Layer", "laylck16.BMP", "laylck24.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_lock;$m=$(getvar,clayer)";;
ID_LAYULK       [_Button("Unlock Layer", "layulk16.BMP", "layulk24.BMP")]^C^C_setenv;oldlayer;$m=$(getvar,clayer);_ai_molc;\"_-layer;_set;$m=$(getenv,oldlayer);_unlock;$m=$(getvar,clayer)";;
                [--]
ID_LAYCHG       [_Button("Change Object's Layer", "laychg16.BMP", "laychg24.BMP")]^C^C_select;\_change;p;;p;la;$m=$(getvar,clayer);;

***HELPSTRINGS
TAG2           [Sets LTSCALE = 0.5 x DIMSCALE]

ID_LAYISO       [Isolate layer of selected object]
ID_LAYOFF       [Turn off layer of selected object]
ID_LAYON        [Turn all layers on]
ID_LAYFRZ       [Freeze layer of selected object]
ID_LAYTHW       [Thaw all layers]
ID_LAYLCK       [Lock layer of selected object]
ID_LAYULK       [Unlock layer of selected object]
ID_LAYCHG       [Move selected object to current layer]

//
//      End of AutoCAD menu file - J:\Menus\rsa_menu.mns
//

Kate M

  • Guest
Re: Menu Load
« Reply #5 on: September 12, 2005, 02:50:04 PM »
Hmm..so you don't need ID's in the POP sections? I didn't know that.

It worked in full, but I only got the pull-down in LT (no toolbars). Same as before...

M-dub

  • Guest
Re: Menu Load
« Reply #6 on: September 12, 2005, 02:54:14 PM »
Hmmm...
I'm not familiar with LT at all, so I wouldn't know what to change.  My guess is that there's something extra in there that it doesn't know how to handle.  Conversely, it could be missing something too.

You don't see anything when you click on Tools > Customize > Toolbars...?

Kate M

  • Guest
Re: Menu Load
« Reply #7 on: September 12, 2005, 03:03:57 PM »
No, the Toolbar command shows a blank. I can't figure it out. If I get it to load fully in LT (which I can do, sometimes, I still don't know how), it won't load at all in full -- no pull-down or toolbars.

M-dub

  • Guest
Re: Menu Load
« Reply #8 on: September 12, 2005, 03:07:55 PM »
Strange indeed!

What do you see when you create a custom toolbar within LT, then check the menu file?  Is the syntax the same?

(I think we could use a hand from someone who knows LT a little better than myself.  Anyone out there? )

ELOQUINTET

  • Guest
Re: Menu Load
« Reply #9 on: September 12, 2005, 03:18:23 PM »
umm yeah what dub said lololololol i'm such a wise ass :evil:

M-dub

  • Guest
Re: Menu Load
« Reply #10 on: September 12, 2005, 03:20:32 PM »
If you're so wise, fix the problem, you @$$

:twisted:

j/k

Kate M

  • Guest
Re: Menu Load
« Reply #11 on: September 12, 2005, 03:26:19 PM »
I can't find any differnences in syntax. I did get one menu to work, by created a custom toolbar (within AutoCAD) and populating it with the buttons from the toolbar I wrote by hand (in notepad). I'm going to clean up the icon references and see what I come up with...

ELOQUINTET

  • Guest
Re: Menu Load
« Reply #12 on: September 12, 2005, 03:26:59 PM »
dub look at my post in the news section

Kate M

  • Guest
Re: Menu Load
« Reply #13 on: September 12, 2005, 03:27:59 PM »
I lied. None of them work in both versions. I'm going to start over, one item in a pulldown and one in a toolbar, and see where that goes.

M-dub

  • Guest
Re: Menu Load
« Reply #14 on: September 12, 2005, 03:34:47 PM »
What I was going to say (since this is a very small menu) is that it might be worth trying to create everything you need within acad, then cut and paste everything in Notepad to create your partial menu.  (does that make sense)