<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use Fields in XREF title block to read each host drawing's title and sheet number? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14121761#M363774</link>
    <description>&lt;P class=""&gt;Hello everyone,&lt;/P&gt;&lt;P class=""&gt;I have recently discovered the magnificent &lt;STRONG&gt;SheetSet&lt;/STRONG&gt; feature in AutoCAD and I have run into an issue while creating a sheet set for a project with a large number of layouts that did not previously have one.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;These layouts use a title block as an XREF, which had the sheet number as a field linked to the &lt;STRONG&gt;Layout Name&lt;/STRONG&gt; property. I would like to change it so the field is now linked to the &lt;STRONG&gt;sheet number property within the Sheet Set&lt;/STRONG&gt;, but it is not updating correctly across different layouts.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Does anyone know if this is possible, and if so, how to set it up?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks in advance,&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Sergio&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2026 08:23:06 GMT</pubDate>
    <dc:creator>sergio_panadero_bautista</dc:creator>
    <dc:date>2026-05-08T08:23:06Z</dc:date>
    <item>
      <title>How to use Fields in XREF title block to read each host drawing's title and sheet number?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14121761#M363774</link>
      <description>&lt;P class=""&gt;Hello everyone,&lt;/P&gt;&lt;P class=""&gt;I have recently discovered the magnificent &lt;STRONG&gt;SheetSet&lt;/STRONG&gt; feature in AutoCAD and I have run into an issue while creating a sheet set for a project with a large number of layouts that did not previously have one.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;These layouts use a title block as an XREF, which had the sheet number as a field linked to the &lt;STRONG&gt;Layout Name&lt;/STRONG&gt; property. I would like to change it so the field is now linked to the &lt;STRONG&gt;sheet number property within the Sheet Set&lt;/STRONG&gt;, but it is not updating correctly across different layouts.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Does anyone know if this is possible, and if so, how to set it up?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks in advance,&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Sergio&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 08:23:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14121761#M363774</guid>
      <dc:creator>sergio_panadero_bautista</dc:creator>
      <dc:date>2026-05-08T08:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Fields in XREF title block to read each host drawing's title and sheet number?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14121976#M363786</link>
      <description>&lt;P&gt;You can create a block to use in each sheet tab where the&amp;nbsp;sheet number and title fields are linked back to Sheet Set Manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Current Sheet Number and Current Sheet Title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Field.png" style="width: 844px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1638592i19E736D1A426B2DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field.png" alt="Field.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 11:32:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14121976#M363786</guid>
      <dc:creator>VincentSheehan</dc:creator>
      <dc:date>2026-05-08T11:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Fields in XREF title block to read each host drawing's title and sheet number?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14122009#M363788</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16894660"&gt;@sergio_panadero_bautista&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16894660"&gt;@sergio_panadero_bautista&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P class=""&gt;...&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;These layouts use a title block as an XREF ... I would like to change it so the field is now linked to the &lt;STRONG&gt;sheet number property within the Sheet Set&lt;/STRONG&gt;, but it is not updating correctly across different layouts.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cannot put a sheet-specific field inside the base Xref drawing, it needs to be in each layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create an attribute block (use ATTDEF) at the location desired with insertion at 0,0,0; then use a lisp "InsertSheetNum" to place it on every layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Valentin_CAD_0-1778241519351.png" style="width: 794px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1638596i66CCAF05B6FD7129/image-dimensions/794x393?v=v2" width="794" height="393" role="button" title="Valentin_CAD_0-1778241519351.png" alt="Valentin_CAD_0-1778241519351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:InsertSheetNum ( / blkName insPt curLayout)
  (vl-load-com)
  
  ;;; --- CONFIGURATION USER VALUES ---
  (setq blkName "SheetNum") ; Name of your sheet info block
  (setq insPt '(0.0 0.0 0.0))         ; Change to your exact X, Y, Z coordinates in paper space
  ;;; ---------------------------------

  ;; Verify the block exists in the drawing before running
  (if (tblsearch "BLOCK" blkName)
    (progn
      ;; Store the active layout name to return to it at the end
      (setq curLayout (getvar "CTAB"))
      
      ;; Loop through all layouts in the drawing
      (foreach lay (layoutlist)
        (setvar "CTAB" lay) ; Switch to the layout
        
        ;; Verify the block isn't already inserted on this layout to prevent duplicates
        (if (not (ssget "X" (list '(0 . "INSERT") (cons 2 blkName) (cons 410 lay))))
          (progn
            ;; Insert the block silently with zero rotation and scale factors of 1
            (vl-cmdf "_.-insert" blkName "_non" insPt "1" "1" "0")
            (princ (strcat "\nPlaced block on layout: " lay))
          )
          (princ (strcat "\nBlock already exists on layout: " lay))
        )
      )
      
      ;; Restore original layout view and force a visual update
      (setvar "CTAB" curLayout)
      (vl-cmdf "_.regenall")
      (princ "\n--- Automation Completed Successfully! ---")
    )
    (alert (strcat "Error: The block \"" blkName "\" was not found in this drawing.\nPlease define or insert it once first."))
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 12:02:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14122009#M363788</guid>
      <dc:creator>Valentin_CAD</dc:creator>
      <dc:date>2026-05-08T12:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Fields in XREF title block to read each host drawing's title and sheet number?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14123879#M363878</link>
      <description>&lt;P&gt;Thanks a lot for that LISP. I am sure it will do the work!&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2026 14:28:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-use-fields-in-xref-title-block-to-read-each-host-drawing/m-p/14123879#M363878</guid>
      <dc:creator>sergio_panadero_bautista</dc:creator>
      <dc:date>2026-05-10T14:28:15Z</dc:date>
    </item>
  </channel>
</rss>

