How to add both prefix and suffic to a dimensionstyle

How to add both prefix and suffic to a dimensionstyle

t_orie
Explorer Explorer
1,794 Views
10 Replies
Message 1 of 11

How to add both prefix and suffic to a dimensionstyle

t_orie
Explorer
Explorer

Hi,

I want my dimension for a certain drawing to look like this:   < ±1234 >
I tried to achieve this with entering < %%p as a prefix and > as a suffix, but apparently, in dimstyle
definition, you can't have both at the same time.
Selecting a dimension and adding both in the properties window does work, bit it would require me
to change those properties manually after adding the dimensions.

Is there a way to get this done?

Thanks for helping!

0 Likes
Accepted solutions (2)
1,795 Views
10 Replies
Replies (10)
Message 2 of 11

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

Prefix AND Suffix at the same time is usually not a problem, but in your case

you are using characters which are special controle characters in dimension texs

and this became trouble.

 

Solution:  Check out the unicode codes of one or both chars and add them to your dimstyle.

Sample for ARIAL.ttf

CADffm_0-1686132624811.png

 

Sebastian

Message 3 of 11

Valentin_CAD
Mentor
Mentor
Accepted solution

@t_orie ,

 

Prefix:  < [Hold Alt+0177]

Suffix:  >

 

ValentinWSP_0-1686133058954.png

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

Message 4 of 11

cadffm
Consultant
Consultant

@Valentin_CAD cool, but

 

Thats the usual way someone whould try it, or like TO tried it.

But on my side (and it looks like for TO too),  the suffix and prefix content disappears after type-in (in dimstyle dialog)

and by using this dimstyle, just the suffix part appears in you dimension.

 

REC from ACD2021

Sebastian

0 Likes
Message 5 of 11

Valentin_CAD
Mentor
Mentor

@cadffm ,

 

Yes, the prefix and suffix content disappears.  However, you can still save the style - and use it.

 

ValentinWSP_0-1686135744969.png

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

Message 6 of 11

cadffm
Consultant
Consultant

@Valentin_CAD  schrieb:

However, you can still save the style - and use it.


 

You're wrong.

YOU can use it with the wanted result,

WE can't.

 

That's the reason of this thread, as you can read abouve and see in my video/gif.

(tried 2021 ACD $ C3D)

 

 

Sebastian

0 Likes
Message 7 of 11

cadffm
Consultant
Consultant

Hi @t_orie 

you marked post#3 as Solution, is it working on your side or why?

On my side it isn't working 😞

Sebastian

0 Likes
Message 8 of 11

t_orie
Explorer
Explorer

Hi,
it is the solution i tried last and it worked, same as yours but it looks less complex.

torie_0-1686138754761.png

thanks for the solutions!

Message 9 of 11

cadffm
Consultant
Consultant

lol,

for @t.ori just < %%p > doesn't work and I guess it is the same for @Valentin_CAD ?

<[ALT]+0177> works for you both

and for me, both ways doesn't work, WTH?

 

hmm.

 

Sebastian

0 Likes
Message 10 of 11

Valentin_CAD
Mentor
Mentor

@cadffm ,

 

That's unfortunate, it works fine in both AutoCAD and C3D.


 

ValentinWSP_0-1686139408962.pngValentinWSP_1-1686139474464.png

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

Message 11 of 11

cadffm
Consultant
Consultant

Thank you for testing,

I don't know why it doesn't work here [tried ACD C3D, German / English, OS lang to Eng instead Ger].

Luck: I don't need it know and I don't have time to search for the problem.

 

THANKS

Sebastian