Dimension text place manually after dimension lines have been set

Dimension text place manually after dimension lines have been set

Anonymous
Not applicable
4,531 Views
13 Replies
Message 1 of 14

Dimension text place manually after dimension lines have been set

Anonymous
Not applicable

I am having to place cross dimensions to a four sided shape polyline. When setting up the dimension styles I can set up text placement to the left or right but does not work out all of the time. For these instances I would have to manually move the dimensions to desired locations along the dimension line. With that exception, I would like to use fine tuning option to place the text manually, which is much effective and time saving; but it would ask for text placement before all of the dimension lines have been set. This causes issues because I want to have the cross dimensions set along the corners and this is impossible without snapping to the corners, which then places the text at the picked corner.

 

Is there a way to fine tune and place the text manually after all of the dimension lines have been set?

0 Likes
Accepted solutions (1)
4,532 Views
13 Replies
Replies (13)
Message 2 of 14

pendean
Community Legend
Community Legend
Pictures please, show us what you mean and what you want to accomplish.
0 Likes
Message 3 of 14

Anonymous
Not applicable

See attached jpg

 

Standard dimension: This is what happens with standard dimensioning. The cross dimensions group up.

Dimension with manual placement: I want to keep the cross dimension lines at the corners but with manual text placement causes them to be placed where I have set the dimension lines.

Dimension Goal: This is what I want it to look like, to set the cross dimension line to the corners and then place the dimension manually.

0 Likes
Message 4 of 14

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....

Dimension Goal: This is what I want it to look like, to set the cross dimension line to the corners and then place the dimension manually.


You can use SNAPANG to get the crosshairs aligned from corner to corner, then with ORTHO turned On, pick on the appropriate Dimension, and grab the text-insertion grip point and drag it where you want it.

Kent Cooper, AIA
Message 5 of 14

pendean
Community Legend
Community Legend
Thanks for the image: there is no automagical way (or setting) for AutoCAD to slide the text out of the way as you show in your goal image. Is that what you are asking for?
You'll need to manually move the dimensions either by clicking on them and dragging the text with the bluedot
or
use DIMTEDIT's Left/Right Justifications options (found in the ANNOTATE tab in the Ribbon, Dimensions Panel, click on the arrow next to the word "dimensions" for a faster than typing option.
Message 6 of 14

scot-65
Advisor
Advisor
A custom routine may be the answer.

Possible outline:
IF Select the 2 corners (/points).
PROGN
Rotate the UCS (z-method).
Draw a defpoint (/temporary) line using these two points.
(setq a (entlast))
DIMUPT to ON.
Command Linear dimension using the two points.
Pause for dimension line placement using the defpoint line as "Nearest".
(entdel a)
UCS to World (/previous).
Restore dimension style.
;progn
;if

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 7 of 14

Anonymous
Not applicable

Thanks for the suggestions. I've tried both but looking for a faster and simpler way than dragging the text.

0 Likes
Message 8 of 14

Anonymous
Not applicable

I've been using the dimaligned command and have dragged the texted into place to get desired look; but would like to avoid moving with grip and applying the dimension and text placement in one command application. I have to dimension thousands of different size shapes with cross dimensions and looking for some short cuts.

0 Likes
Message 9 of 14

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

I've been using the dimaligned command and have dragged the texted into place to get desired look; but would like to avoid moving with grip and applying the dimension and text placement in one command application. ....


I'm a little confused, because you did talk about placing the text manually, but nevertheless....

 

How about setting up a Dimension Style in which the text placement is:

 

DimTxtPlace.png

 

 

[or at Ext Line 2], and with both Extension Lines suppressed, with this kind of result:

 

DimTxtResult.png

 

Kent Cooper, AIA
Message 10 of 14

pendean
Community Legend
Community Legend
Then you will need to automate with LISP or a macro to invoke your dimension command, and upon completion use DIMTEDIT's Left or Right quick text move.

There is nothing built in to automate the two commands as a single function.
0 Likes
Message 11 of 14

Kent1Cooper
Consultant
Consultant

Kent1Cooper wrote:

 ....

How about setting up a Dimension Style ....

Then, with that Style current, if a rectangle is a closed Polyline saved into the 'pl' variable, this will put in the diagonal Dimensions, without any manual User dragging around of text:

(command

  "_.dimaligned" (vlax-curve-getPointAtParam pl 0) (vlax-curve-getPointAtParam pl 2) "@"

  "_.dimaligned" (vlax-curve-getPointAtParam pl 1) (vlax-curve-getPointAtParam pl 3) "@"

)

 

[It occurs to me to wonder:  If they're always rectangles as in your image, do you need to Dimension both  diagonals?  They'll both be the same, so one should "tell the story."]

Kent Cooper, AIA
0 Likes
Message 12 of 14

Anonymous
Not applicable

This solution was something I was thinking to do as well but realized that all the other dimensions (the perimeter dimensions) had moved as well. I would have to create a different dimension style for both instances.

 

I guess there isn't a built in solution but this is the best solution thus far.

0 Likes
Message 13 of 14

Anonymous
Not applicable

Is this a lisp routine?

 

And the example drawing was only one example. It is a closed polyline with four side but not all of the cross dimensions are equal.

0 Likes
Message 14 of 14

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

Is this a lisp routine?

 

And the example drawing was only one example. It is a closed polyline with four side but not all of the cross dimensions are equal.


It's AutoLisp code, but not a "routine" yet -- but let's make it one [in very simplest terms]:

 

(defun C:D4PD ; = Dimension 4-sided Polyline Diagonals
  (/ pl)
  (setq pl (car (entsel "\nSelect 4-sided closed Polyline to Dimension Diagonals: ")))
  (command
    "_.dimaligned" (vlax-curve-getPointAtParam pl 0) (vlax-curve-getPointAtParam pl 2) "@"
    "_.dimaligned" (vlax-curve-getPointAtParam pl 1) (vlax-curve-getPointAtParam pl 3) "@"
  )
)

 

That requires the Dimension Style with the text to one end to be current, but setting is so [and even making it, if necessary] could be built in.  And it could be made to confirm that you actually picked an appropriate object, etc.

 

If the diagonals are not necessarily equal, then of course you do want both Dimensioned, and it does both.

Kent Cooper, AIA
0 Likes