Jump to content
shailujp

How to fix Block thumbnail preview in dialog box of a custom program

Recommended Posts

shailujp

I have made updates to an old library block (file) and saved my changes. We have a custom menu, custom program and dialog box shows all different blocks to choose from and I frequently use it. The inserted block shows updates correctly but wont change the thumbnail preview inside the dialog box.

 

Its not an attribute block or a dynamic block.

 

Is there anyway to resolve the preview issue?

Share this post


Link to post
Share on other sites
shailujp

Can anyone assist me on this?

Share this post


Link to post
Share on other sites
meracl

How are those thumbnails loaded into the dialog box?

If they are loaded using a slide library file (.slb) or slide image (.sld) then you have to recreate those files!

Its been ages! since i used that once.

Share this post


Link to post
Share on other sites
shailujp

Thanks meracl for your response.

 

I think they are .slb files.

 

But I do not know how to regenerate them. Any suggestions? Also, how do I know which file to update? Is there any code associated inside the DCL?

Share this post


Link to post
Share on other sites
MSasu

A SLB file is a library made from slide files. There is a utility to create those files named slidelib.exe shipped with AutoCAD; just call it on command prompt to see its usage instructions.

Share this post


Link to post
Share on other sites
meracl

SLB files or file?

Do you have the slide images of all blocks (many *.SLD files)?? or just a slide library file (.SLB)???

 

 

Performing a quick search on autocad help:

Slide images (SLD) files are generated using MSLIDE command from inside autocad.

(be sure to zoom into the block as you want it to be shown on that slide).

Slide library file is created using slidelib.exe and a .txt file on a DOS prompt!

 

 

If you are lucky and have the individual slide images (SLD files) you only need to recreate those.

In the other case i'm not sure if a script or lsp exists to speed that process.

 

 

Displays an AutoCAD slide in the currently active dialog box image tile

(slide_image x1 y1 width height sldname)

 

 

Share this post


Link to post
Share on other sites
shailujp

Actually both files (.SLD & .SLB) were there. I found out only after investigating in the MNU file (from where this was coming). I was able to create a single .sld file for the block needing updates and then add into the .SLB file using Slidelib.exe. Then it appeared correctly in the Dialogue box.

 

Thank you meracl & MSasu.

 

Appriciate it.

Share this post


Link to post
Share on other sites
meracl

Thats great to hear!!!! You are welcome.

 

 

Marios

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...