×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Tables and zeros

Tables and zeros

Tables and zeros

(OP)
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.

RE: Tables and zeros

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

RE: Tables and zeros

(OP)
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.

RE: Tables and zeros

Does it follow your current units settings?  DDUNITS

RE: Tables and zeros

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.

RE: Tables and zeros

Can you write 184.000 instead of 184?

RE: Tables and zeros

(OP)
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.

RE: Tables and zeros

Because DIMZIN setting affects display of leading & trailing zeroes.

Here's a place to get the list:
http://www.afralisp.net/lisp/acadvar.htm

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

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.

RE: Tables and zeros

(OP)
Nice to come to work on a frosty Norwegian morning (only -2 today) and get so much help from around the world.

Cheers. Sean.

RE: Tables and zeros

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) :)

RE: Tables and zeros

Let's not leave out Pennsylvania, USA.  6 DegF (-14 DegC) and breezy at 7AM Eastern time

RE: Tables and zeros

Weatherbug is flashing -5 degF here in Pgh., PA

____________________
Acad2006, Terramodel

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources