I might actually beable to help you on this one.
***MENUGROUP=SMW-CHI
***POP1
[&Title Blocks...]$I=SMW-CHI.image_titleblock $i=*
***IMAGE
**IMAGE_TITLEBLOCK
[Title Blocks]
[Slides(ATT-8511,Attributes 8.5x11)]^C^C_-layer;set;0;;-insert;"C:/CHI-CUSTOMCAD/title blocks/ATT-8511" \;;;
[Slides(Att-8511L,Attributes 8.5x11L)]^C^C_-layer;set;0;;-insert;"C:/CHI-CUSTOMCAD/title blocks/Att-8511L" \;;;
[Slides(ATT-1117,Attributes 11x17)]^C^C_-layer;set;0;;-insert;"C:/CHI-CUSTOMCAD/title blocks/ATT-1117" \;;;
[Slides(Att-3042,Attributes 30x42)]^C^C_-layer;set;0;;-insert;"C:/CHI-CUSTOMCAD/title blocks/Att-3042" \;;;
[Slides(Att-3444,Attributes 34x44)]^C^C_-layer;set;0;;-insert;"C:/CHI-CUSTOMCAD/title blocks/Att-3444" \;;;
[Slides(Att-3648,Attributes 36x48)]^C^C_-layer;set;0;;-insert;"C:/CHI-CUSTOMCAD/title blocks/Att-3648" \;;;
This is code that I use in my setup, its only part of it but I didnt want to post like 6 pages of this stuff.
*****************************
Here is how the format works.
*** IMAGE_(what ever you name your variable)
[Name of the GUI (it will show up in the top left corner)]
This is where it gets a bit confusing so I will try to explain it in steps...
1. Where I have
[Slides
this is the name of the SLB file that holds all the SLD files.
2.
(ATT-8511,Attributes 8.5X11)]
this is stating that "ATT-8511" is the SLD file name, "Attributes 8.5X11" is what the Description is of that SLD file. This discription will show up in the description box of the GUI.
3.
^C^C_-layer;set;0;;-insert;"C:/CHI-CUSTOMCAD/title blocks/ATT-8511" \;;;
This is just like a button code. It says where to insert the file from and what to do when it is Inserted, basically "\" = Pause ";" = Enter stroke.
//
// AutoCAD menu file - S:\MENU\Wynn-Menu.MNU
//
***MENUGROUP=Titleblocks
***POP20
**Titlelbocks
[TitleBlocks]
[TITLEBLOCK PART 1]$I=TitleBlocks.Wynn-TB $I=*
[TitleBlock Part 2]$I=TitleBlocks.Wynn-TB2 $I=*
***TOOLBARS
***IMAGE
**Wynn-TB
[Wynn Engineering Titleblocks]
[WE-CALC-85x11]^C^C-insert WE-CALC-85x11 \;;\
[WE-TB-11x17]^C^C-insert WE-TB-11x17 \;;\
[WE-TB-24x36]^C^C-insert WE-TB-24x36 \;;\
[WE-TB-30x42]^C^C-insert WE-TB-30x42 \;;\
[WE-TB-36x48]^C^C-insert WE-TB-36x48 \;;\
[WE-TB-85x1]^C^C-insert WE-TB-85x11 \;;\
[WE-TB-NORTH]^C^C-insert WE-TB-NORTH \;;\
[WE-TB-STAMP]^C^C-insert WE-TB-STAMP \;;\
[WE-TITLE-NORTH]^C^C-insert WE-TITLE-NORTH \;;\
**Wynn-TB2
[Wynn Engineering Titleblocks 2]
[WE-TB-24x36]^C^C-insert WE-TB-24x36 \;;\
***MENUGROUP=
***POP50
**Commands
[Wynn-Menu]
[->Commands]
[&Break-Line]^C^Cbl;
[Change Multiple Text]^C^Ccht;
[Revision]^C^Crc;
[Snap-Angle]^C^Csa;
[Plot-Log]Plog
[Copy multiple]^C^Ccm;
[Fix Target](command "vbaload" "fix-target" "vbarun" "fixtarget")(princ)
[->Zoom]
[&Extents]'ze
[<-&Previous]'zp
[->->Send &Private Message To:]
[Bill]pm;BI;
[Bryan]pm;B;
[Bruce]pm;BR;
[Dawn]pm;d;
[Jack]pm;ja;
[Jennifer]pm;j;
[Jurek]pm;ju;
[Larry]pm;l;
[Marla]pm;m;
[Sharon]pm;sh;
[<-Souk]pm;s;
[->Change &Layer]
[S-&1]1;;
[S-&2]2;;
[S-&3]3;;
[S-&4]4;;
[S-&5]5;;
[&S-56]56;;
[S-&6]6;;
[S-&7]7;;
[S-&8]8;;
[<-S-&9]9;;
[->->Dimensions]
[Horiz/Vert]dl
[Aligned]dal
[Leader w/ Dot]ld
[leader w/ loop]ll
[<-<-2head Leader]span
[->->Setup]
[->->Plot 24x36]
[1"=1"]12436;
[1 1/2"=1'-0"]82436;
[1"=1'-0"]122436;
[3/4"=1'-0"]162436;
[1/2"=1'-0"]242436
[1/4"=1'-0"]482436;
[3/16"=1'-0"]642436;
[1/8"=1'-0"]962436;
[<-3/32"=1'-0"]1282436;
[->->Plot 30x42]
[1"=1"]13042;
[1 1/2"=1'-0"]83042;
[1"=1'-0"]123042
[3/4"=1'-0"]163042;
[1/2"=1'-0"]243042
[1/4"=1'-0"]483042;
[3/16"=1'-0"]643042;
[1/8"=1'-0"]963042;
[<-3/32"=1'-0"]1283042;
[->->Titleblock]
[<-Detail Grid]^C^Cgb;
//
// End of AutoCAD menu file - S:\WYNN-CAD\menu\Wynn-Menu.mnu
//
From your post here is what I think is wrong with it.
***MENUGROUP=Titleblocks
***POP20
**Titlelbocks
[TitleBlocks]
[TITLEBLOCK PART 1]$I=IMAGE_Wynn-TB $I=*
[TitleBlock Part 2]$I=IMAGE_Wynn-TB2 $I=*
***IMAGE
**IMAGE_Wynn-TB
[Wynn Engineering Titleblocks]
[SILDELIBRARYNAME(SLIDENAME,DESCRIPTION)]^C^C-insert[b];[/b]WE-CALC-85x11 \;;\
**IMAGE_Wynn-TB2
[Wynn Engineering Titleblocks 2]
[SLIDELIBRARYNAME(SLIDENAME,DESCRIPTION)]^C^C-insert;WE-TB-24x36 \;;\
In my Code I always but the **IMAGE stuff at the very end of the code.
I didnt go through all your code just the Image stuff.
Now your probably like "what the hell is a SLB file" well here you go.
Once the slides are created, you need to make sure that slidelib.exe is in C:\directory (the directory your slides are in)
As seen in the AutoCAD help file, go to dos prompt, and while in the directory, type:
dir *.sld /b > slidelist
Then, with that list in the same directory, type:
slidelib libraryname < slidelist
*******************
http://theswamp.org/phpBB2/viewtopic.php?t=2381&highlight=slidelib&sid=870e1dcbce04e4f069ef92ce538e33b7
Basically, Here is how mine is setup. I created a Directory on my C:\ drive for all my blocks and menus and custom stuff (for easiness...I will call it CADBLOCKS).
so..
C:\CADBLOCKS
I created all my Slides I wanted using the MSLIDE command. Took all though SLD files and placed them in a directory....
C:\CADBLOCKS\SLIDES
Once I did that I copied the SLIDELIB.EXE into that directory.
Opened DOS prompt, typed...
cd cadblocks\slides
<- this should take you to c:\cadblocks\slides
Then,
dir *.sld /b > slidelist
<- (slidelist will be basically a text file, with only the the SLD files listed (hence the *.sld))
Next,
slidelib Slides < slidelist
<- This will create a SLB file named Slides and place all the named files within the Slidelist file in the SLB file.
SO,
[Slides(SLIDENAME,Discription)]
<- It will look in the SLIDE.SLB file for the SLIDENAME and pull out the SLD file and make it viewable in the Imagebox
Now I have found that the IMAGE files (SLB and SLD) location needs to be in the support file search path under preferances or the Slides wont load.
If I get time I will try to go through your code and see if I can fix it. But I would suggest trying it on your own first so that you can learn it.