wishbonesr Posted January 19, 2012 Posted January 19, 2012 I have a dialog (DCL) active, that lists block names. As the user selects them, I want them all the blocks the user selected (via name) to highlight. The first time, the action tile runs through the code, the first block selection set highlights. All subsequent changes in block fail to highlight - UNLESS I walk the code through or select another program and then come back to autocad. It's like the dcl isn't relinquishing to windows redraw for the autocad app. Here's the highlight function. Does vlisp have this problem? What funny, is I call the 'delight' function, and the object does in fact un-highlight.... just doesn't highlight the next block group. (defun highlight (ss / sscount) (if ss (progn (setq sscount -1) (while (< (setq sscount (1+ sscount)) (sslength ss)) (redraw (ssname ss sscount) 3) );while );progn (graphscr) );if );defun (defun delight (ss / sscount) (if ss (progn (setq sscount -1) (while (< (setq sscount (1+ sscount)) (sslength ss)) (redraw (ssname ss sscount) 4) );while );progn );if );defun Quote
Lee Mac Posted January 19, 2012 Posted January 19, 2012 Since standard DCL can only create modal dialogs there are restrictions on what actions you can perform whilst the dialog takes focus, you would usually need to hide the dialog to perform operations within the drawing area. This operation would be more suited to a modeless dialog - I believe you can create these using OpenDCL. Quote
wishbonesr Posted January 20, 2012 Author Posted January 20, 2012 Hide: I figured as much. OpenDCL: I'll check it out. Thank you for your reply. 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.