Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tables and zeros 1

Status
Not open for further replies.

SeanSweeney

Civil/Environmental
Mar 16, 2005
173
I am using 'eattext' to extract block information to autocad tables. I am however struggling to display information to the decimal places I want.

In properties if I write 184 (z value) it displays 184 and the same in a table - I want 184.000 because as the other values are also to 3 decimal places.

Can you help me to force the decimal places?

Cheers. Sean.
 
Replies continue below

Recommended for you

Hi Sean,

which file do You create. *.csv?
"eattext" suppresses the zeros, so I would change the places in Excel...

Lothar

ADT 2004
ACAD 2002
 
That looks like the right answer - excel - export and reimport with zeros. You said though that eattext suppresses zeros but by the looks of things it is autocad which does this as the zeros are not shown in properties boxes either (and eattext just displays the property information).

I presume there isnt a way to stop autocad suppressing the zero (or a significant figure setting).

Cheers. Sean.
 
Does it follow your current units settings? DDUNITS
 
Check your settings of LUPREC & DIMZIN. If eattext uses these settings (as lisp routines do), then setting LUPREC to 3 and DIMZIN less than 8 should do it.
 
Its a combination of LUPREC and DIMZIN. With DIMZIN at 8 I get no decimal places - when set to something lower (with LUPREC at 3), I get the three decimal places as defined by LUPREC.

Thank you, thank you and thank you. BUT, why.

Could you explain what the variables are and more importantly does anybody have an up to date list of system variables with definitions and possible settings (I used to have one which was invaluable, but lost it - the very detailed one with 50 or so pages).

Thanks again.

Cheers. Sean.
 
Because DIMZIN setting affects display of leading & trailing zeroes.

Here's a place to get the list:

----------------------------------------------

DIMZIN DDIM
Type: Integer
Saved in: Drawing
Initial value: 0
Controls the suppression of zeros in the primary unit value. DIMZIN stores this value when you enter it on the command line or set it under Primary Units in the Annotation dialog box. DIMZIN values 0–3 affect feet-and-inch dimensions only.

0 Suppresses zero feet and precisely zero inches
1 Includes zero feet and precisely zero inches
2 Includes zero feet and suppresses zero inches
3 Includes zero inches and suppresses zero feet
4 Suppresses leading zeros in decimal dimensions (for example, 0.5000 becomes .5000)
8 Suppresses trailing zeros in decimal dimensions (for example, 12.5000 becomes 12.5)
12 Suppresses both leading and trailing zeros (for example, 0.5000 becomes .5)

DIMZIN also affects real-to-string conversions performed by the AutoLISP rtos and angtos functions.
 
Nice to come to work on a frosty Norwegian morning (only -2 today) and get so much help from around the world.

Cheers. Sean.
 
You're welcome. Only slightly colder here in Anchorage this late evening (midnight). 14 deg F (- 10 C). Cheers

(I really don't like Eng-Tips "Auto Star", after you get one in a thread you can't get rid of it) :)
 
Let's not leave out Pennsylvania, USA. 6 DegF (-14 DegC) and breezy at 7AM Eastern time
 
Weatherbug is flashing -5 degF here in Pgh., PA

____________________
Acad2006, Terramodel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor