Results 1 to 3 of 3

Thread: First or Last Didgets in CTAB

  1. #1
    Active Member
    Join Date
    2007-11
    Posts
    68
    Login to Give a bone
    0

    Talking First or Last Didgets in CTAB

    Here is another doosy of a question i would like some advice on.

    Does anyone know how to make a field via diesel or anything alse that refers to "CTAB" value and inserts only the first 4 digits or the last 4 digits.

    eg.

    CTAB = drawing - 03

    The field displayed via your exprssion is " DRAW " which is the fist 4 digits of the ctab value.

    then another expression that will give me the last 2 digits
    " 03 " in this example.

    Any thoughts?
    Last edited by Zuke; 2008-04-03 at 10:49 PM.

  2. #2
    Active Member
    Join Date
    2007-11
    Posts
    68
    Login to Give a bone
    0

    Talking Re: First or Last Didgets in CTAB

    Answer

    $(substr,$(getvar,ctab), 4,2)

    Add this as a diesel expression to a field and modify the last 2 numbers in the string to change which set of digits you end up with.

    Very handy...

  3. #3
    Retired Forum Staff Chris.N's Avatar
    Join Date
    2001-12
    Location
    Rochester, MN
    Posts
    2,561
    Login to Give a bone
    0

    Default Re: First or Last Didgets in CTAB

    thanks for posting the answer!
    Sometimes, i get lost in my own thoughts and need to ask directions to find my way back.
    S&D DB Sharing Forum

Similar Threads

  1. Extract value of ctab field to xls file
    By paulof in forum AutoLISP
    Replies: 21
    Last Post: 2011-05-01, 08:30 PM
  2. Replies: 17
    Last Post: 2009-03-01, 03:00 AM

Posting Permissions

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