Jim Clayton Posted November 28, 2018 Posted November 28, 2018 Hello. I'm working on modifying a Lisp with an Image Tile DCL. So far I've managed to get it close to being on the right track but I'm having trouble with two main things. I want to load previews of the images into the tiles, and I also want to align the label text under the image tiles. I know what I need to modify, but I'm having a hard time actually making the changes so that it appears correctly. I've attached the Lisp, DCL, and the Blocks. If anyone can help I'd greatly appreciate it. Tks. image.lsp image.dcl Dyn 12 Nip-Int.dwg Dyn 34 Nip-Int.dwg DYN_RFWN FLG.dwg Dynamic Heads.dwg Quote
Roy_043 Posted November 29, 2018 Posted November 29, 2018 This is a nice DCL tutorial: http://web2.airmail.net/terrycad/Tutorials/MyDialogs.htm Quote
rlx Posted November 29, 2018 Posted November 29, 2018 (edited) like this? INSBLOCK : dialog { label="CHOOSE YOUR PART"; :row {:column {:image_button {key="Dynamic Heads";height=8.0;aspect_ratio=1.2;color=graphics_background;} :text {label="HEAD";alignment=centered;}} :column {:image_button {key="Dyn 12 Nip-Int";height=8.0;aspect_ratio=1.2;color=graphics_background;} :text {label="1/2NPT NIPPLE";alignment=centered;}} :column {:image_button {key="Dyn 34 Nip-Int";height=8.0;aspect_ratio=1.2;color=graphics_background;} :text {label="3/4NPT NIPPLE";alignment=centered;}} :column {:image_button {key="DYN_RFWN FLG";height=8.0;aspect_ratio=1.2;color=graphics_background;} :text {label="RFWN FLANGE";alignment=centered;}}} spacer;ok_cancel;} Edited November 29, 2018 by rlx Quote
Jim Clayton Posted November 29, 2018 Author Posted November 29, 2018 The Label Centering is spot on, perfect, exactly what I'm trying to achieve. Still not able preview the block image though. I appreciate all the help. Quote
Jim Clayton Posted November 29, 2018 Author Posted November 29, 2018 Reading thru the DCL link from Roy_043 (tks)...might be able to solve this. We shall see. Quote
rlx Posted November 29, 2018 Posted November 29, 2018 just make sure the slides are somewhere in AutoCads search path or add path to slide names in lisp file Jim Clayton.zip 1 Quote
Jim Clayton Posted November 29, 2018 Author Posted November 29, 2018 I appreciate all the help. Thanks again. Quote
rlx Posted November 29, 2018 Posted November 29, 2018 53 minutes ago, Jim Clayton said: I appreciate all the help. Thanks again. you're welcome. If you want a true block preview (instead of a slide) , it is possible but it involves a lot more coding. I believe openDCL also supports this. Just making a slide is so much simpler. Good luck with your routine. Rlx Quote
Recommended Posts
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.