Results 1 to 2 of 2

Thread: Expression to show Northing and Eastings to look like stations

  1. #1
    Member
    Join Date
    2015-11
    Location
    Ohio
    Posts
    17
    Login to Give a bone
    0

    Default Expression to show Northing and Eastings to look like stations

    Hi,

    I am trying to write an expression so that I can take my point table and have the northing and eastings show in a label similar to how stations are formatted. i.e. N: 1546.56 would look like N: 15+46.56.

    The project I am working on utilizes this grid system and has all kinds of stations shown for corners and such - so I cannot go to them and say you need to change your labels.

    I am trying to keep the points dynamic, hence the use of an expression to help change the way the coordinates would format. It not as simple as truncating the numbers as I need to keep the third and fourth integer then show the rest of the number after a '+' sign.

    Is there a way to find the third and fourth number, insert a plus symbol, and then add the rest of the numbers after the symbol? Would I need to create a long string of if-then statements for each multiple? - (if <1200, 12)(if<1300,13) etc...

    Any help would be appreciated.

    Thanks,

    Greg-

  2. #2
    Woo! Hoo! my 1st post
    Join Date
    2007-01
    Posts
    1
    Login to Give a bone
    0

    Default Re: Expression to show Northing and Eastings to look like stations

    The best way I can think of would be to use two expressions: one for before the + and one for after.

    The first would be:
    Code:
    FLOOR(Northing/100)
    and the second would be:
    Code:
    Northing-(FLOOR(Northing/100)*100)

Similar Threads

  1. ID Northing/Easting In C3D
    By jimmyhill in forum AutoCAD Civil 3D - General
    Replies: 13
    Last Post: 2016-01-26, 11:00 PM
  2. show grid beyond alignment stations?
    By Maverick91 in forum AutoCAD Civil 3D - Profiles
    Replies: 1
    Last Post: 2012-04-27, 03:14 AM
  3. Northing & Easting
    By gmarshall.222707 in forum Dynamic Blocks - Sharing
    Replies: 0
    Last Post: 2009-08-11, 10:02 PM
  4. Nested Fields - Convert units for Northings/Eastings?
    By keelay711 in forum AutoCAD Fields
    Replies: 5
    Last Post: 2007-03-05, 07:24 AM
  5. Block for Northings/Eastings
    By keelay711 in forum AutoCAD General
    Replies: 2
    Last Post: 2005-02-01, 08:23 PM

Tags for this Thread

Posting Permissions

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