Changing units within tokens

Changing units within tokens

IanHopton1340
Advocate Advocate
1,021 Views
2 Replies
Message 1 of 3

Changing units within tokens

IanHopton1340
Advocate
Advocate

Is it possible to change units within Tokens

E.G.

Advance Steel units are set to Kg.

in some drawing labels I would like to change the weight from Kg's to Tonnes.

A bit like in an excel to word mail merge:

if you Insert the field code \# "0.00" after the title of the merge field it will reduce the imported value to 2 decimal places.

0 Likes
1,022 Views
2 Replies
Replies (2)
Message 2 of 3

AleckGiles
Mentor
Mentor

Hi,

 

The units AS uses in a file are controlled by the Project Settings (Home > Settings ribbon panel). Simply set the Weight unit as desired. This is per file so you might want to set it in your template or prototype file(s) so that new files inherit the desired settings.

 

Aleck Giles, Structures Consultant, Graitec
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

LinkedIn

Autodesk Certified Instructor - Gold

Message 3 of 3

Sebastian_Eiche
Mentor
Mentor

you could also change the unit for only some labels.
This is done by the following steps

  • you have to insert rectangle brackets with three numbers between the "%" and the tokenname, for example:
    %[3,3,2]Thickness
  • what does this means? the numbers show entries from 3 different tables which you could find in the AstorBase
    (you could open the Management Tools and then the Tableeditor to have a look in the tables
  • the first number is the unit for the token, maybe for this example we need a UnitofDistance (there're other ones for area,angle and so on), by looking in the table we found the Key 3 for milimeter
  • the second number is for the table "unitsType"--for our example the key 3 means decimal
  • the third number is for the table "UnitPrecision" and here we see the key 2 which means "0,0"

So what is the result of this example? We could set our label units in the Managemen Tools --Settings with no number after the comma, but this token will have 0ne. If you label a plate which have a thickness in the model of 3,2 mm and the width is 200,3mm the length maybe 300,4mm, then the label would be PL3,2x200x300.
If we delete the brackets of the token thickness, the result would be PL3x200x300.



Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

0 Likes