# Data Tag customized unit

## Recommended Posts

hi, i want to show calculation result in my data tag, and die result unit should be l/s. With using #AREA# value in the Calculation, it always shows in Tag sq m. How can i show the unit mark with l/s in my Data Tag?

I hope I am wrong, but I don't think you can. It appears that only linear dimension can be set to not "Show Mark" by unchecking the box. That kind of makes sense so you always know if something is not a simple dimension, but it makes it really hard to do what you are trying to do.

I will ponder this and maybe we will both get lucky and someone else will chime in with the easy answer.

Sorry.

I think I figured it out with a lot of help from other posts on the forum.

The math in Data Tags takes the units into account. So to get rid of unit marks you have to divide by something else using the same unit mark. You can then put your now unit mark text in.

The following data tag definition displays the Area of a drawing in Square Feet but with a unit mark of L/S.  Note that there is no space between the1 and the sq in the divisor of 1sq ft.

#AREA#/1sq ft L/S

Your definition probably needs to be something like:

#AREA#/50sq m l/s

Good luck.

On 12/3/2020 at 5:37 AM, Pat Stanford said:

I think I figured it out with a lot of help from other posts on the forum.

The math in Data Tags takes the units into account. So to get rid of unit marks you have to divide by something else using the same unit mark. You can then put your now unit mark text in.

The following data tag definition displays the Area of a drawing in Square Feet but with a unit mark of L/S.  Note that there is no space between the1 and the sq in the divisor of 1sq ft.

#AREA#/1sq ft L/S

Your definition probably needs to be something like:

#AREA#/50sq m l/s

Good luck.

thanks for your answer! yes i have also read this solution in an other old post, but it did not work with me. my document unit is meter, so i just divided 1 sq m. Unfortunately it shows for example: 20 sq msq m l/s

BUT, i finally find a way to get it! i have to define a record "1 sq m" in record format and then use this record to be divided by AREA. Then it works! Just notice, DONT use "document unit", use "square meters".

i still don't know why it has to be so complicated:(

but at least, it works:)

I am glad you got it working for you.

I just tried use Document Units in a drawing set to Square Meters and it worked fine, except that I could not find a way (after about 5 minutes of playing) to control the number of decimal places after the division.

In the following formula, the top row is in document units and give just l/s as the written units. The next two lines are for Document Units and Sq M that I was trying to see how each option actually displayed the units. They are all the same. I don't know what was going on if your version.

Flow is: #AREA#/50sq m l/s

#AREA#

#AREA##sq m_1_1#

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

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×