Jump to content

Making DIMCONTINUE command honor current DIMSTYLE text placement formatting


Recommended Posts

Posted

I really enjoy using the DIMCONTINUE command, as it is really fast.

The problem I have with it, is that it overrides the current dimstyle

defined, TEXT PLACEMENT setting, with 'ABOVE DIM LINE WITH LEADER'.

I would prefer that it honor the DIMSTYLE saved text placement.

 

As it works now, every time I finish using this for a string of continued dimensions I need to remember to select them all and reapply the current dimstyle from the right click shortcut menu.

If I don't, and there are any dimensions too short to accommodate the text and arrows, the leader is added, which I don't want.

dimcontinue text placement default.jpg

text placement honored.jpg

Posted

Below is a very simple automation of the DimContinue and DimStyle commands:

 

(defun c:dimc ( / en )
   (setq en (entlast))
   (command "_.dimcontinue")
   (while (= 1 (logand 1 (getvar 'cmdactive)))
       (command "\\")
   )
   (if (not (eq en (entlast)))
       (progn
           (command "_.-dimstyle" "_A")
           (while (setq en (entnext en))
               (command en)
           )
           (command "")
       )
   )
   (princ)
)

 

Hope this helps!

Posted

Hi Lee, thanks very much for doing this, :)

but it seems I am still having the same issue.

Which seems to be that the DIMTMOVE value needs to remain 0, or be reset to 0 for any of the newly completed

dimensions, and the default behavior seems to switch it to 1, whenever the available space for the text

on the dimension line crosses the minimum threshold, instead of moving the text horizontally outside the arrow.

 

If I check the properties of a very short newly created continued dimension (displaying with the unwanted leader), in Properties it still says

it is the current dimstyle, :huh: BUT in order to restore that DIMTMOVE variable to 0, I have to click

dimension style in my right click shortcut menu and select the current dimstyle there, and that will reset it to

the TEXT PLACEMENT being beside the dimension line.

Posted
Hi Lee, thanks very much for doing this, :)

but it seems I am still having the same issue.

 

You're welcome, though that's odd since the code seems to work for me:

 

DimCont.gif

Posted (edited)

Yes Lee, that is a very compelling argument, I must agree. :huh:

Let me give that another try.

 

I see said the blindman!

I was using the ESC button to exit the command, instead of ENTER.

Wherever you go, there you are!

Working like a charm now, just needed to keep my eyes on the road, thanks very much Lee! :beer:

 

That's smokin'!

Edited by Dadgad
Posted

No worries Dadgad :)

 

Try this:

(defun c:dimc ( / *error* en )
   (defun *error* ( m )
       (if (not (eq en (entlast)))
           (progn
               (command "_.-dimstyle" "_A")
               (while (setq en (entnext en))
                   (command en)
               )
               (command "")
           )
       )
       (princ)
   )
   (setq en (entlast))
   (command "_.dimcontinue")
   (while (= 1 (logand 1 (getvar 'cmdactive)))
       (command "\\")
   )
   (*error* nil)
   (princ)
)

Now you should be able to exit with either 'Enter' or 'Esc'.

Posted

Too cool for school Lee!

Big old smile on my face, don't even need to learn how to use it. :D

Now that is what great design is all about, thanks again! :beer:

Posted

I'm now eager to apply this enhanced version of DIMCONTINUE to

the hover over GRIP MENU for dimensions, so that if I choose to dimcontinue from that

drop down menu it will use this, instead of the default version.

If I click on DIMCONTINUE in that dropdown, the commandline shows

** CONTINUE DIMENSION **.

I tried creating a new alias for that in the CUI, but it is not recognized?

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