Remove hidden space before alternate dimensions??

Remove hidden space before alternate dimensions??

Joseph_henderson
Participant Participant
2,075 Views
10 Replies
Message 1 of 11

Remove hidden space before alternate dimensions??

Joseph_henderson
Participant
Participant

Need dimension to have 4 lines. 1st = imperial   2nd = metric in brackets    (Here is dim line)    3rd = text note     4th = text note.

I have it all figured out but the alternate dim is not centered in dimension because autocad is inserting a hidden space before the alternate dim. I've tried every combo of prefix suffix \X \P space etc. Found only one other person with same issue on another forum and it was never answered. Thanks

2,076 Views
10 Replies
Replies (10)
Message 2 of 11

Paul_Gander
Advocate
Advocate

You need to balance it out with another space after the alternate dimension text. Normally spaces at the end of a line will get removed but if you stack 2 spaces they will remain. Try this:

dim with notes.PNG

 

 

 

0 Likes
Message 3 of 11

Joseph_henderson
Participant
Participant

Thank you sir, that worked. Do you know how to enter that into the dim style manager so that I can apply that to many dimensions on other drawings. Match properties did not work on another dimension

Message 4 of 11

neaton
Advisor
Advisor

If you select Placement "Below primary unit" in the dimstyle AutoCAD removes the extra space and the dimensions are centered below each other.

Alt Units Below Primary Unit.png

Nancy


@Joseph_henderson wrote:

Thank you sir, that worked. Do you know how to enter that into the dim style manager so that I can apply that to many dimensions on other drawings. Match properties did not work on another dimension

0 Likes
Message 5 of 11

Joseph_henderson
Participant
Participant

Correct however this results in primary dim on top, and then secondary and both lines of notes under the dim line. So 1 line above dim and 3 lines below dim. \X is auto placed by autocad between the 2 dims and it can only be used once unlike the \P.

I'm in process of fixing all dims with you solution but it would be nice if the dim style could be set with 2 lines on top and 2 lines on bottom.

0 Likes
Message 6 of 11

neaton
Advisor
Advisor

Unfortunately, AutoCAD will always center the 2 dims vertically on the dimension line when Below Primary Unit is selected and all other text is below that. The only way to vertically center all the text is to set the alternate dimensions in line with the base dim and add the \S after the dimension as @Paul_Gander said.

Nancy


@Joseph_henderson wrote:

Correct however this results in primary dim on top, and then secondary and both lines of notes under the dim line. So 1 line above dim and 3 lines below dim. \X is auto placed by autocad between the 2 dims and it can only be used once unlike the \P.

I'm in process of fixing all dims with you solution but it would be nice if the dim style could be set with 2 lines on top and 2 lines on bottom.

0 Likes
Message 7 of 11

Joseph_henderson
Participant
Participant

Ok thanks for help. And to you or paul... Any idea of location of the full list for custom override characters. I know the basics but forgot what \S does and same with ^ ;  etc. Need to get the full list printed for future issues

0 Likes
Message 8 of 11

Paul_Gander
Advocate
Advocate

@Joseph_henderson wrote:

Do you know how to enter that into the dim style manager so that I can apply that to many dimensions on other drawings. 


Unfortunately I don't think it's possible to do it that way. AutoCAD uses separate variables for the dimension text and the alternate units text (DIMPOST and DIMAPOST) and simply puts them together, with the alternate bit in square brackets, when a dimension is created. There is no provision in the dimension style for adding more text after that.

 

Have you tried to clipboard copy the text override from one dimension's properties palette, select the dimensions you want to change and then paste the text back into the palette?

 

You could also use something like this simple lisp routine to define a new command (DIMNOTE) that creates a new dimension and then modifies the text to suit your format:

(defun c:dimnote ( )
  (command "._dimlinear" pause pause pause)
  (command "._dimedit" "_new" "<>\\P[]\\S ^ ;\\XNOTE1\\PNOTE2" "_last" "")
  (princ)
)

Copy this to a text editor such as notepad, change NOTE1 and NOTE2 to whatever text you need and save as a .LSP file. Use AutoCAD's APPLOAD command to load the file and add it to your startup suite so that it will always be readily available.

I'm sure there are lisp users on here, more experienced than me, who could advise on how to improve this too.

Here are links to help on using formatting codes in alternate text editors:

 

http://help.autodesk.com/view/ACD/2019/ENU/?guid=GUID-6F59DA4A-A790-4316-A79C-2CCE723A30CA

 

http://help.autodesk.com/view/ACD/2019/ENU/?guid=GUID-7D8BB40F-5C4E-4AE5-BD75-9ED7112E5967

Message 9 of 11

Anonymous
Not applicable

@Joseph_henderson I found this list of codes for override text, hope it helps

Message 10 of 11

jean.renaud.grimard
Contributor
Contributor

So, the Paul_Gander solution « \S ^ ; » is actually not a normal space, but a "fraction" with spaces at the numerator and the denominator... that's interesting how much we have to trick the system to do something very simple... The "Dimension style" solution is a good alternative to stack the units for all dimensions in a drawing, but the Paul Gander solution is useful if there is only some dimensions that needs to be stacked.

0 Likes
Message 11 of 11

hoannguyenFAUDH
Community Visitor
Community Visitor
0 Likes