<?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 Re: Automated Layout Generation from Block reference in AutoCAD Map 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13391872#M167</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use TabSort from LeeMac to reorder your layouts :&amp;nbsp;&lt;A href="https://www.lee-mac.com/tabsort.html" target="_blank" rel="noopener"&gt;https://www.lee-mac.com/tabsort.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 13:11:46 GMT</pubDate>
    <dc:creator>O_Eckmann</dc:creator>
    <dc:date>2025-03-26T13:11:46Z</dc:date>
    <item>
      <title>Generation from Block reference</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13390233#M163</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am new to this platform and am currently facing a challenge involving the automated generation of layouts from model space GRID blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, I need to create over 100 layouts, each corresponding to a unique GRID block. Manually generating these layouts is proving to be quite time-consuming, and I am exploring automation solutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a sample DWG file containing five GRID blocks with GeoIMAGE, along with a sample layout for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to automate the generation of layouts for all GRID blocks. Each layout should be named according to the SHTNUM attribute value associated with its respective GRID block, and the viewport properties (scale, etc.) should match those of the provided sample layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be immensely grateful for any guidance or assistance you could provide in achieving this automation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your time and consideration.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 06:53:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13390233#M163</guid>
      <dc:creator>manyamjyotsna</dc:creator>
      <dc:date>2025-03-27T06:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Layout Generation from Block reference</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13390382#M164</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17113958"&gt;@manyamjyotsna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try something like that&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:AutoLayout ( / ssBlk oBlk sShtNum I PT)
  (if (setq ssBlk (ssget "x" (list (cons 0 "INSERT") (cons 2 "GRID") (cons 66 1))))
    (progn
      (setq I 0)
      (repeat (sslength ssBlk)
	(setq oBlk (ssname ssBlk I))
	(setq I (1+ I))
	(setq sShtNum (cdr (assoc 1 (entget (entnext oBlk)))))
	; Delta X = 177.0000,  Delta Y = 124.8318
	(setq PT (cdr (assoc 10 (entget oBlk))))
	(setq PT (polar PT    0.0     (* 0.5 177.0000)))
	(setq PT (polar PT (* 0.5 PI) (* 0.5 124.8318)))
	(command "_-layout" "_c" "Sample" sShtNum)
	(setvar "CTAB" sShtNum)
	(command "_-VPORTS" "_l" "_off" "_all" "")
	(command "_MSPACE")
	(command "_zoom" "_c" PT "")
	(command "_PSPACE")
	(command "_-VPORTS" "_l" "_on" "_all" "")
	(setvar "CTAB" "Sample")
      )
    )
  )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 20:52:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13390382#M164</guid>
      <dc:creator>O_Eckmann</dc:creator>
      <dc:date>2025-03-25T20:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Layout Generation from Block reference</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13390974#M165</link>
      <description>&lt;P&gt;No problem.&lt;BR /&gt;If you can't create your own Lisp, then you'd better use a ready-made solution.&lt;BR /&gt;For example - "AutoViewport"&lt;BR /&gt;I recommend using the Internet search, there's a lot of information there.&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="1.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1481920i51BC4022FE799CA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1481921iA13066C2E3F2EA04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 06:25:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13390974#M165</guid>
      <dc:creator>baksconstructor</dc:creator>
      <dc:date>2025-03-26T06:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Layout Generation from Block reference</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13391331#M166</link>
      <description>&lt;P class=""&gt;Thanks for your time and effort, Olivier.&lt;/P&gt;&lt;P class=""&gt;This is working perfectly; however, the only adjustment needed is that the generated layouts are not being added in sequential order and are following a random pattern.&lt;/P&gt;&lt;P class=""&gt;I would like the layouts to be arranged in &lt;STRONG&gt;ascending order&lt;/STRONG&gt; (1, 2, 3, 4, ...).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 08:49:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13391331#M166</guid>
      <dc:creator>manyamjyotsna</dc:creator>
      <dc:date>2025-03-26T08:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Layout Generation from Block reference</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13391872#M167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use TabSort from LeeMac to reorder your layouts :&amp;nbsp;&lt;A href="https://www.lee-mac.com/tabsort.html" target="_blank" rel="noopener"&gt;https://www.lee-mac.com/tabsort.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 13:11:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13391872#M167</guid>
      <dc:creator>O_Eckmann</dc:creator>
      <dc:date>2025-03-26T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Layout Generation from Block reference</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13392117#M168</link>
      <description>&lt;P&gt;This works, Many thanks&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 14:40:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/generation-from-block-reference/m-p/13392117#M168</guid>
      <dc:creator>manyamjyotsna</dc:creator>
      <dc:date>2025-03-26T14:40:44Z</dc:date>
    </item>
  </channel>
</rss>

