See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Insert a field that would show the layout tab name on the dwg

  1. #1
    All AUGI, all the time
    Join Date
    2004-06
    Location
    Slidell, Louisiana
    Posts
    972
    Login to Give a bone
    0

    Default Insert a field that would show the layout tab name on the dwg

    Is there a way to insert a field that would show the layout tab name on the dwg similar to the filename? Any help would be appreciated.

  2. #2
    Active Member
    Join Date
    2005-03
    Posts
    59
    Login to Give a bone
    2

    Default Re: Insert a field that would show the layout tab name on the dwg

    Type this in Diesel Expression box.

    $(getvar,ctab)

    Young.

  3. #3
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Default Re: Insert a field that would show the layout tab name on the dwg

    Hi "rmk" ( Sorry, I do not know your real name )

    Please note I have *moved* this thread from the AutoCAD 2007 General forum to this one, as I feel this particular forum is a more appropriate place for such a topic.

    Thanks, Mike

    Forum Manager

  4. #4
    All AUGI, all the time Capt. Computer Crasher's Avatar
    Join Date
    2006-12
    Location
    South of North & East of West
    Posts
    786
    Login to Give a bone
    0

    Default Re: Insert a field that would show the layout tab name on the dwg

    Quote Originally Posted by ch00su View Post
    Type this in Diesel Expression box.

    $(getvar,ctab)

    Young.
    Thanks I been try to figure that out too

  5. #5
    Member
    Join Date
    2008-11
    Posts
    20
    Login to Give a bone
    0

    Default Re: Insert a field that would show the layout tab name on the dwg

    Diesel is ok but Filed is much better

    INSERT---- Field
    DOCUMENT------ Filename

    With dwg or without dwg! Works perfect!


    regards

  6. #6
    I could stop if I wanted to JASONM30395's Avatar
    Join Date
    2002-04
    Location
    Halifax NS Canada
    Posts
    397
    Login to Give a bone
    0

    Default Re: Insert a field that would show the layout tab name on the dwg

    Quote Originally Posted by blackqube View Post
    Diesel is ok but Filed is much better

    INSERT---- Field
    DOCUMENT------ Filename

    With dwg or without dwg! Works perfect!


    regards
    This works, but I believe he wanted the tab name, in which case he will want the CTAB listing. It's under the system variables in fields.
    Attached Images Attached Images
    Loyalty above all else except honor
    For my honor is my life!

  7. #7
    Active Member
    Join Date
    2005-04
    Posts
    77
    Login to Give a bone
    0

    Default Re: Insert a field that would show the layout tab name on the dwg

    Quote Originally Posted by ch00su View Post
    Type this in Diesel Expression box.

    $(getvar,ctab)

    Young.

    Thank You!

  8. #8
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Insert a field that would show the layout tab name on the dwg

    The nice thing about the diesel method (as per post 2 by ch00su) is that you can surround it with a substr diesel function to extract only a portion of the tab name. Not so with the direct system variable field.

    I do something similar: our file names contain the project #, as well as the drawing number's group code. Then the tab has the last 2 digits of the drawing number - this so the DWG may contain more than one tab with each their own unique dwg#. I use substr with getvar,dwgname to extract the required portions from the filename. You could do the same thing with the getvar,ctab.

  9. #9
    Member
    Join Date
    2008-02
    Location
    North Seattle
    Posts
    42
    Login to Give a bone
    0

    Default Re: Insert a field that would show the layout tab name on the dwg

    Quote Originally Posted by irneb View Post
    The nice thing about the diesel method (as per post 2 by ch00su) is that you can surround it with a substr diesel function to extract only a portion of the tab name. Not so with the direct system variable field.

    I do something similar: our file names contain the project #, as well as the drawing number's group code. Then the tab has the last 2 digits of the drawing number - this so the DWG may contain more than one tab with each their own unique dwg#. I use substr with getvar,dwgname to extract the required portions from the filename. You could do the same thing with the getvar,ctab.
    I am trying to get some fields to fill in from my layout tabs as well. Could you possibly help? We name our layouts like this " 3.01 Elevations" or "1.04 Reflected Ceiling Plan". I would like to fill 1 field in my Title Block with the number i.e. "3.01" and another field with the "Elevations". I know the ctab system variable for the whole layout. I also found this...

    $(substr,$(getvar,"ctab"),$(-,$(strlen,$(getvar,"ctab")),3))

    which gives you the LAST 4 characters. Any help would be great!!

  10. #10
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Insert a field that would show the layout tab name on the dwg

    Reasonably simple if the number portion always stays the same length. For the number itself try:
    Code:
    $(substr,$(getvar,ctab),1,4)
    For the rest of the tab's name try:
    Code:
    $(substr,$(getvar,ctab),6)
    The substr diesel function requires the start position number (i.e. the 1 and the 6). The 2nd number is how many characters should be extracted, if this is omitted it extracts all up to the end. The code you had basically calculated the length less 3 for the start point - thus the 4th last position.

Page 1 of 2 12 LastLast

Similar Threads

  1. Field that would show the drawing no in same in layout tab
    By M.Jamal Khan in forum AutoCAD Fields
    Replies: 8
    Last Post: 2013-02-20, 02:41 PM
  2. Field as Layout Tab Name???
    By csiress in forum AutoCAD Sheet Set Manager
    Replies: 5
    Last Post: 2011-08-05, 04:59 PM
  3. Field with layout name
    By paulof in forum AutoCAD General
    Replies: 4
    Last Post: 2009-12-31, 12:39 PM
  4. Layout Name field
    By david.scheu in forum AutoCAD Fields
    Replies: 2
    Last Post: 2006-08-28, 09:32 PM
  5. Field for Layout Tab Name?
    By SRBalliet in forum AutoCAD Fields
    Replies: 2
    Last Post: 2005-12-06, 06: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
  •