Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

Hide: I figured as much.

OpenDCL: I'll check it out.

 

Thank you for your reply.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...