Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

if using .mnu in 2006, how do I get images on pulldown items?

8 REPLIES 8
Reply
Message 1 of 9
Anonymous
254 Views, 8 Replies

if using .mnu in 2006, how do I get images on pulldown items?

When loading a mnu into 2006+, it compiles to CUI (no news)
One nice feature of the CUI system is the little image that shows on the pulldowns for each command.
Only problem is it only does that for items that were on some toolbar in the .mnu.

If a pulldown item's macro was not the same as some toolbar button, you get no image.

I know I could cross to the dark side and use the CUI to assign images to all macros after the convert, but I know there
is still good in me....I'll never turn!....sorry, flashback moment...

So lets say I have a simple menu with one pulldown, and one item on the pulldown. Is there any way to get an image
assigned using the help ID or something?

Reason I ask is I have TONS of pulldown items, and not nearly as many toolbar buttons. So when the conversion happens
to CUI, I get mostly no images on the pulldown items.
thx
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
8 REPLIES 8
Message 2 of 9
tdaniel14
in reply to: Anonymous

When you click on your item in the CUI, you should be able to add the .bmp name to the images portion of the Properties window. Example: "Small image" - northarrow.bmp. Assuming you have a bmp named northarrow and you set a reference to its location, this should give you an image.
Message 3 of 9
Anonymous
in reply to: Anonymous

right, but I mentioned that I want to stick with .mnu only.
I know my question might have sounded like a total beginner issue, but its actually not, I know the CUI well by now.

I am asking how to do that purely in the .mnu.
One answer is to simply make a toolbar with exactly the same commands as the pulldowns.
Only issue is then I have to maintain the pulldown item, and the button because any differences in the macros will keep
the picture from being assigned to the pulldown item...

tdaniel14 <>
|>When you click on your item in the CUI, you should be able to add the .bmp name to the images portion of the Properties window. Example: "Small image" - northarrow.bmp. Assuming you have a bmp named northarrow and you set a reference to its location, this should give you an image.
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
Message 4 of 9
Anonymous
in reply to: Anonymous

I've been watching this thread hoping for a hidden answer. Like you James,
I want to stick with the old MN* system too.

"Only issue is then I have to maintain the pulldown item, and the button
because any differences in the macros will keep the picture from being
assigned to the pulldown item..."

You could write a lisp that would automatically create the pull-down syntax
based on the tool bar text.
Message 5 of 9
Anonymous
in reply to: Anonymous


I have this on my pulldown menus by
mistake

I belive that I have a toolbar item of the exact
same title as the pulldown title

so the cui thinks its the same thing and pops in
the icon

I too only edit the .mnu

[img src="@108759"]

 

[->Modify]
  [Change
Elevation          
\tCE]^C^C^P(if (not c:CE)(load "ChangeElevation.lsp"))^P CE
  [Offset
Elevation          
\tOE]^C^C^P(if (not c:OfElev)(load "OFELEV.LSP"))^P OfElev
  [Set
sequential elevations      ]^C^C^P(if (not
c:SETELEV)(load "SETELEV.LSP.lsp"))^P SETELEV
  [--]
  [Change
Aligned Dim to Rotated  ]^C^C^P(if (not c:DimAlign2Rotate)(load
"DimAlign2Rotate.lsp"))^P DimAlign2Rotate
  [--]
  [Change layer
color/linetype\tCC]^C^C^P(if (not Chlaycolt)(load "chlaycoltr16.vlx"))^P
Chlaycolt
  [--]
  [Add Point to
Spline           
]^C^C^P(if (not c:SplineAddPoint)(load "SplineAddPoint.lsp"))^P
SplineAddPoint
  [Inverse
Polyline             ;  
]^C^C^P(if (not c:IPOLY)(load "IPOLY.lsp"))^P IPOLY
  [Reverse
line/pline/arc/text    ]^C^C^P(if (not c:reverse)(load
"reverse.lsp"))^P reverse
  [--]
[<-Flip
Dimension           &nbs p;    
]^C^C^P(if (not c:DIMFLIP)(load "DIMFLIP.lsp"))^P DIMFLIP

 

***TOOLBARS
**CB Civil
[_Toolbar("C::B
Civil", _Top, _Show, 2, 2, 1)]
[_Button("Change
Elevation           &nbs p;
", "ChElev.bmp",
"ChElev.bmp")                        
]^C^C^P(if (not c:CE)(load "ChangeElevation.lsp"))^P CE
[_Button("Change
layer color/linetype  ", "ChLayColorLinetype.bmp",
"ChLayColorLinetype.bmp")]^C^C^P(if (not Chlaycolt)(load "chlaycoltr16.vlx"))^P
Chlaycolt
[_Button("Change Aligned Dim to Rotated", "ChangeToRotatedDim.bmp",
"ChangeToRotatedDim.bmp")]^C^C^P(if (not c:DimAlign2Rotate)(load
"DimAlign2Rotate.lsp"))^P DimAlign2Rotate
[_Button("Label
Elevation           &nbs p; 
", "LabelElevation.bmp",
"LabelElevation.bmp")        ]^C^C^P(if (not
c:LElev)(load "LabelElev.lsp"))^P LElev
[_Button("Label
Slope            &n bsp;    
", "LabelSlope.bmp",
"LabelSlope.bmp")          &n bsp;    
]^C^C^P(if (not c:LSlope)(load "LabelElev.lsp"))^P LSlope
[_Button("Offset
Elevation           &nbs p;
", "OffsetElevation.bmp", "OffsetElevation.bmp")     
]^C^C^P(if (not c:OfElev)(load "OFELEV.LSP"))^P OfElev
[_Button("2 Point
Rotated Dimension    ", "RotatedDimension.bmp",
"RotatedDimension.bmp")    ]^C^C^P(if (not c:2pdimrot)(load
"2pdimrot.lsp"))^P 2pdimrot


--
Dave

"James Maeding" <jmaeding...hunsaker...com@>
wrote in message

face=Arial size=2>news:5185229@discussion.autodesk.com

face=Arial size=2>...
right, but I mentioned
that I want to stick with .mnu only.
I know my question might have sounded
like a total beginner issue, but its actually not, I know the CUI well by
now.

I am asking how to do that purely in the .mnu.
One answer is to
simply make a toolbar with exactly the same commands as the pulldowns.
Only
issue is then I have to maintain the pulldown item, and the button because any
differences in the macros will keep
the picture from being assigned to the
pulldown item...

tdaniel14 <>
|>When you click on your item
in the CUI, you should be able to add the .bmp name to the images portion of the
Properties window.  Example:  "Small image"  - 
northarrow.bmp.  Assuming you have a bmp named northarrow and you set a
reference to its location, this should give you an image.
James
Maeding
Civil Engineer and Programmer
jmaeding - athunsaker -
com
Message 6 of 9
Anonymous
in reply to: Anonymous

right, thats what I mean by making a button for each item.
Dave, you can see you posted html, was that on purpose?

I did a major menu reorganization a few days ago, and could not imagine doing it through the CUI.
Copying and pasting is so much fater than the CUI interface...

David Allen
|>

|>
|>
I have this on my pulldown menus by
|>mistake

|>
I belive that I have a toolbar item of the exact
|>same title as the pulldown title

|>
so the cui thinks its the same thing and pops in
|>the icon

|>
I too only edit the .mnu

|>
[img src="@108759"]

|>
|> size=2> 

|>
[->Modify]
  [Change
|>Elevation          
|>\tCE]^C^C^P(if (not c:CE)(load "ChangeElevation.lsp"))^P CE
  [Offset
|>Elevation          
|>\tOE]^C^C^P(if (not c:OfElev)(load "OFELEV.LSP"))^P OfElev
  [Set
|>sequential elevations      ]^C^C^P(if (not
|>c:SETELEV)(load "SETELEV
|>LSP.lsp"))^P SETELEV
  [--]
  [Change
|>Aligned Dim to Rotated  ]^C^C^P(if (not c:DimAlign2Rotate)(load
|>"DimAlign2Rotate.lsp"))^P DimAlign2Rotate
  [--]
  [Change layer
|>color/linetype\tCC]^C^C^P(if (not Chlaycolt)(load "chlaycoltr16.vlx"))^P
|>Chlaycolt
  [--]
  [Add Point to
|>Spline           
|>]^C^C^P(if (not c:SplineAddPoint)(load "SplineAddPoint.lsp"))^P
|>SplineAddPoi
|>nt
  [Inverse
|>Polyline             ;  
|>]^C^C^P(if (not c:IPOLY)(load "IPOLY.lsp"))^P IPOLY
  [Reverse
|>line/pline/arc/text    ]^C^C^P(if (not c:reverse)(load
|>"reverse.lsp"))^P reverse
  [--]
[<-Flip
|>Dimension           &nbs p;    
|>]^C^C^P(if (not c:DIMFLIP)(load "DIMFLIP.lsp"))^P DIMFLIP

|>

|>
 

|>
***TOOLBARS
**CB Civil
[_Toolbar("C::B
|>Civil", _Top, _Show, 2, 2, 1)]
[_Button("Change
|>Elevation           &nbs p;
|>", "ChElev.bmp",
|>"ChElev.bmp")                        
|>]^C^C^P(if (not c:CE)(load
|>"ChangeElevation.lsp"))^P CE
[_Button("Change
|>layer color/linetype  ", "ChLayColorLinetype.bmp",
|>"ChLayColorLinetype.bmp")]^C^C^P(if (not Chlaycolt)(load "chlaycoltr16.vlx"))^P
|>Chlaycolt
[_Button("Change Aligned Dim to Rotated", "ChangeToRotatedDim.bmp",
|>"ChangeToRotatedDim.bmp")]^C^C^P(if (not c:DimAlign2Rotate)(load
|>"DimAlign2Rotate.lsp"))^P DimAlign2Rotate
[_Button("Label
|>Elevation           &nbs p;
|> 
|>", "LabelElevation.bmp",
|>"LabelElevation.bmp")        ]^C^C^P(if (not
|>c:LElev)(load "LabelElev.lsp"))^P LElev
[_Button("Label
|>Slope            &n bsp;    
|>", "LabelSlope.bmp",
|>"LabelSlope.bmp")          &n bsp;    
|>]^C^C^P(if (not c:LSlope)(load "LabelElev.lsp"))^P LSlope
[_
|>Button("Offset
|>Elevation           &nbs p;
|>", "OffsetElevation.bmp", "OffsetElevation.bmp")     
|>]^C^C^P(if (not c:OfElev)(load "OFELEV.LSP"))^P OfElev
[_Button("2 Point
|>Rotated Dimension    ", "RotatedDimension.bmp",
|>"RotatedDimension.bmp")    ]^C^C^P(if (not c:2pdimrot)(load
|>"2pdimrot.lsp"))^P 2pdimrot

|>

|>D2>--
Dave

|>
"James Maeding" <jmaeding...hunsaker...com@>
|>wrote in message

|>face=Arial size=2>news:5185229@discussion.autodesk.com

|>face=Arial size=2>...
right, but I mentioned
|>that I want to stick with .mnu only.
I know my question might have sounded
|>like a total beginner issue, but its
|>actually not, I know the CUI well by
|>now.

I am asking how to do that purely in the .mnu.
One answer is to
|>simply make a toolbar with exactly the same commands as the pulldowns.
Only
|>issue is then I have to maintain the pulldown item, and the button because any
|>differences in the macros will keep
the picture from being assigned to the
|>pulldown item...

tdaniel14 <>
|>When you click on your item
|>in the CUI, you should be able to add
|> the .bmp name to the images portion of the
|>Properties window.  Example:  "Small image"  - 
|>northarrow.bmp.  Assuming you have a bmp named northarrow and you set a
|>reference to its location, this should give you an image.
James
|>Maeding
Civil Engineer and Programmer
jmaeding - athunsaker -
|>com

|>

James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
Message 7 of 9
Anonymous
in reply to: Anonymous

James,

Alas the days of quickly and easily customizing AutoCAD are slipping away.
I don't know why. I routinly, during a week, use Photoshop, Illustrator,
VIZ, and Sketchup and always wish I could customize them with simple
language in notepad.exe.

The leaders at AutoDESK these days think they can provide everything in the
GUI that us users will need.

Years to come we'll tell the young cadd guys of the days when we controlled
AutoCAD; not the other way around . . ..

jb
Message 8 of 9
Anonymous
in reply to: Anonymous

I switched to OE from agent since OE is free

Ya the CUI would be ridicilous for major menu editing.

--
Dave

"James Maeding" wrote in message
news:5189471@discussion.autodesk.com...
right, thats what I mean by making a button for each item.
Dave, you can see you posted html, was that on purpose?

I did a major menu reorganization a few days ago, and could not imagine
doing it through the CUI.
Copying and pasting is so much fater than the CUI interface...

David Allen
|>

|>
|>
I have this on my pulldown menus by
|>mistake

|>
I belive that I have a toolbar item of the
exact
|>same title as the pulldown title

|>
so the cui thinks its the same thing and pops
in
|>the icon

|>
I too only edit the .mnu

|>
[img src="@108759"]

|>
|> size=2> 

|>
[->Modify]
  [Change
|>Elevation          
|>\tCE]^C^C^P(if (not c:CE)(load "ChangeElevation.lsp"))^P CE
 
[Offset
|>Elevation          
|>\tOE]^C^C^P(if (not c:OfElev)(load "OFELEV.LSP"))^P OfElev
  [Set
|>sequential elevations      ]^C^C^P(if (not
|>c:SETELEV)(load "SETELEV
|>LSP.lsp"))^P SETELEV
  [--]
  [Change
|>Aligned Dim to Rotated  ]^C^C^P(if (not c:DimAlign2Rotate)(load
|>"DimAlign2Rotate.lsp"))^P DimAlign2Rotate
  [--]
  [Change
layer
|>color/linetype\tCC]^C^C^P(if (not Chlaycolt)(load "chlaycoltr16.vlx"))^P
|>Chlaycolt
  [--]
  [Add Point to
|>Spline           
|>]^C^C^P(if (not c:SplineAddPoint)(load "SplineAddPoint.lsp"))^P
|>SplineAddPoi
|>nt
  [Inverse
|>Polyline            
;  
|>]^C^C^P(if (not c:IPOLY)(load "IPOLY.lsp"))^P IPOLY
  [Reverse
|>line/pline/arc/text    ]^C^C^P(if (not c:reverse)(load
|>"reverse.lsp"))^P reverse
  [--]
[<-Flip
|>Dimension           &nbs
p;    
|>]^C^C^P(if (not c:DIMFLIP)(load "DIMFLIP.lsp"))^P DIMFLIP

|>

|>
 

|>
***TOOLBARS
**CB Civil
[_Toolbar("C::B
|>Civil", _Top, _Show, 2, 2, 1)]
[_Button("Change
|>Elevation           &nbs
p;
|>", "ChElev.bmp",
|>"ChElev.bmp")           
            
|>]^C^C^P(if (not c:CE)(load
|>"ChangeElevation.lsp"))^P CE
[_Button("Change
|>layer color/linetype  ", "ChLayColorLinetype.bmp",
|>"ChLayColorLinetype.bmp")]^C^C^P(if (not Chlaycolt)(load
"chlaycoltr16.vlx"))^P
|>Chlaycolt
[_Button("Change Aligned Dim to Rotated",
"ChangeToRotatedDim.bmp",
|>"ChangeToRotatedDim.bmp")]^C^C^P(if (not c:DimAlign2Rotate)(load
|>"DimAlign2Rotate.lsp"))^P DimAlign2Rotate
[_Button("Label
|>Elevation           &nbs
p;
|> 
|>", "LabelElevation.bmp",
|>"LabelElevation.bmp")        ]^C^C^P(if
(not
|>c:LElev)(load "LabelElev.lsp"))^P LElev
[_Button("Label
|>Slope            &n
bsp;    
|>", "LabelSlope.bmp",
|>"LabelSlope.bmp")          &n
bsp;    
|>]^C^C^P(if (not c:LSlope)(load "LabelElev.lsp"))^P LSlope
[_
|>Button("Offset
|>Elevation           &nbs
p;
|>", "OffsetElevation.bmp",
"OffsetElevation.bmp")     
|>]^C^C^P(if (not c:OfElev)(load "OFELEV.LSP"))^P OfElev
[_Button("2
Point
|>Rotated Dimension    ", "RotatedDimension.bmp",
|>"RotatedDimension.bmp")    ]^C^C^P(if (not c:2pdimrot)(load
|>"2pdimrot.lsp"))^P 2pdimrot

|>

|>D2>--
Dave

|>
"James Maeding"
<jmaeding...hunsaker...com@>
|>wrote in message

href="news:5185229@discussion.autodesk.com">
|>face=Arial size=2>news:5185229@discussion.autodesk.c...

|>face=Arial size=2>...
right, but I
mentioned
|>that I want to stick with .mnu only.
I know my question might have
sounded
|>like a total beginner issue, but its
|>actually not, I know the CUI well by
|>now.

I am asking how to do that purely in the .mnu.
One answer
is to
|>simply make a toolbar with exactly the same commands as the
pulldowns.
Only
|>issue is then I have to maintain the pulldown item, and the button because
any
|>differences in the macros will keep
the picture from being assigned to
the
|>pulldown item...

tdaniel14 <>
|>When you click on your
item
|>in the CUI, you should be able to add
|> the .bmp name to the images portion of the
|>Properties window.  Example:  "Small image"  - 
|>northarrow.bmp.  Assuming you have a bmp named northarrow and you set
a
|>reference to its location, this should give you an image.
James
|>Maeding
Civil Engineer and Programmer
jmaeding - athunsaker -
|>com

|>

James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
Message 9 of 9
Anonymous
in reply to: Anonymous

ya its funny but if you use a product like revit you cannot even move the
toolbars.
In some ways though its nicer because everything is always in the right
place
It never gets screwed up.

--
Dave

"James Buzbee" wrote in message
news:5189754@discussion.autodesk.com...
James,

Alas the days of quickly and easily customizing AutoCAD are slipping away.
I don't know why. I routinly, during a week, use Photoshop, Illustrator,
VIZ, and Sketchup and always wish I could customize them with simple
language in notepad.exe.

The leaders at AutoDESK these days think they can provide everything in the
GUI that us users will need.

Years to come we'll tell the young cadd guys of the days when we controlled
AutoCAD; not the other way around . . ..

jb

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost