Results 1 to 3 of 3

Thread: Thousands separator in coordinate

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2011-05
    Posts
    1

    Default Thousands separator in coordinate

    I would like to make a levelmark with a field that displays the Y coordinate of a point, and need to have a thousands separator. In the Additional Format dialog the Thousands is greyed out when you have a value based on a coordinate.
    Is there a work arround to this?
    Attached Images Attached Images

  2. #2
    Member dkennard's Avatar
    Join Date
    2007-06
    Location
    Perth WA
    Posts
    34

    Default Re: Thousands separator in coordinate

    I have the same problem I've worked out that I need to add %th32 (%th being the thousands separator and 32 being the decimal ASCII value for the space character) to my field expression but I cant find a way to manually edit the field experssion.

  3. #3
    Member dkennard's Avatar
    Join Date
    2007-06
    Location
    Perth WA
    Posts
    34

    Default Re: Thousands separator in coordinate

    Solution: works for me at least. I'm working with a block with attributes that show the insert point in easting’s and northing’s.

    1. Edit the field you want to add the thousands separator to and copy the field expression. For me that gives the following:
    %<\AcObjProp.16.2 Object(?BlockRefId,1).InsertionPoint \f "%lu2%pt1%pr2[, E]">%
    Which returns the X co-ord of the insert point of the block I'm using followed by " E".

    2. Paste that expression into a text editor like notepad, edit it adding the thousands separator value to it, make sure this comes AFTER any suffix strings, so I how have this as my expression:
    %<\AcObjProp.16.2 Object(?BlockRefId,1).InsertionPoint \f "%lu2%pt1%pr2[, E]%th32">%

    3. Copy this modified expression from your text editor (remember to only select the text) and paste this directly into your text, mtext or attribute. In my case the modified expression is pasted directly into the "Default:" box of the "Edit Attribute Definition" (ddedit) dialog box.

    This works on "new" inserts of my block however it does not update the existing blocks which is not a huge issue for me.

    Also note that as this is a non standard way of doing things, if at some point I edit the attribute and hit the additional format button AutoCAD will automatically strip the thousands separator from the expression, in which case I end up at step 1 again.

    I've attached the block so you can see what’s going on.
    Attached Files Attached Files

Similar Threads

  1. 2011: Thousands of Annotation Scales....
    By aspencer.226869 in forum AutoCAD General
    Replies: 3
    Last Post: 2010-07-09, 04:46 PM
  2. 2008 C3D - thousands of messages scrolling by..
    By piper in forum CAD Management - General
    Replies: 10
    Last Post: 2009-08-13, 02:10 PM
  3. How to draw thousands of 3D Cylinders all at different angles.
    By Dave F. in forum AutoCAD 3D (2007 and above)
    Replies: 6
    Last Post: 2007-10-25, 07:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •