See the top rated post in this thread. Click here

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

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

  1. #11
    Member
    Join Date
    2009-02
    Posts
    4
    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 Baghera View Post
    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.
    Thankyou, this was very helpful!

  2. #12
    Member
    Join Date
    2014-11
    Posts
    5
    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
    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.
    Thank you, irneb! This works perfectly with a pure XREF titleblock with fields in mtext referencing custom file properties in lieu of attributes and allows me to leave attributed titleblocks out of our drawings now.

  3. #13
    Member
    Join Date
    2014-11
    Posts
    5
    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 designer2060682891 View Post
    Thank you, irneb! This works perfectly with a pure XREF titleblock with fields in mtext referencing custom file properties in lieu of attributes and allows me to leave attributed titleblocks out of our drawings now.
    This is also a great way to side step Sheet Set Manager for the most basic sheet set where all of the layout tabs reside in one drawing. Very cool!

  4. #14
    Member
    Join Date
    2017-03
    Posts
    18
    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
    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.
    So.... say you have 25 pages of cross sections in civil 3d and you want to put in a field (in model Space) above each cross section that is tied to the corresponding layout tab. So if your cross sections were page # 26-50 of your set then the field for tab of sheet #47 would allways say 47, (even when you are looking at it in model space) and if your drawing set grew and sheet 47 is now 53, then all the fields would update to the # of their corresponding tab, regardless of whether or not you were looking at them in MS or PS.

Page 2 of 2 FirstFirst 12

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
  •