<?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: Question about using VBA script in Excell to automate single-line generation. in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/question-about-using-vba-script-in-excell-to-automate-single/m-p/13668796#M164531</link>
    <description>&lt;P&gt;If I understand your request, first the sample dwg had no viewports setup. You can get only objects from model space that are within a window the size of the viewport.&amp;nbsp; You use the trans function. to work out the window points based on the viewport.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A viewport has the following properties. Using (entget (car (entsel "\nPick viewport")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PICK((-1 . &amp;lt;Entity name: de2c2e30&amp;gt;) (0 . "VIEWPORT") (5 . "3BDF7") (330 . &amp;lt;Entity name: da4e8e90&amp;gt;) (100 . "AcDbEntity") (67 . 1) (410 . "Detail") (8 . "WACHTER-LABELS") (100 . "AcDbViewport") (10 17.9844497372394 11.999999517336 0.0) (40 . 35.8910603099105) (41 . 23.8691006458669) (68 . 2) (69 . 2) (12 20.5584427374715 14.756579553713 0.0) (13 0.0 0.0 0.0) (14 0.5 0.5 0.0) (15 0.5 0.5 0.0) (16 0.0 0.0 1.0) (17 0.0 0.0 0.0) (42 . 50.0) (43 . 0.0) (44 . 0.0) (45 . 49.0016811663871) (50 . 0.0) (51 . 0.0) (72 . 1000) (90 . 819296) (1 . "") (281 . 0) (71 . 1) (74 . 0) (110 0.0 0.0 0.0) (111 1.0 0.0 0.0) (112 0.0 1.0 0.0) (79 . 0) (146 . 0.0) (170 . 0) (61 . 5) (348 . &amp;lt;Entity name: da4e9f90&amp;gt;) (292 . 1) (282 . 1) (141 . 0.0) (142 . 0.0) (63 . 250) (421 . 3355443) (361 . &amp;lt;Entity name: da554360&amp;gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dxf 10 is centroid,&amp;nbsp;40 is length.,&amp;nbsp;41 is width&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you get centroid and add 1/2 the width and length to work out the 2 corner points, then use (trans minpt 3 0) &amp;amp; (trans maxpt 3 0), this will give you the 2 corner points in model and you can use (ssget "WP" pts '((0 . "insert"))) to get say all the blocks then get insertion points and send to excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully all that makes sense. If correct provide a better sample dwg properly setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 01:17:38 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2025-06-06T01:17:38Z</dc:date>
    <item>
      <title>Question about using VBA script in Excell to automate single-line generation.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/question-about-using-vba-script-in-excell-to-automate-single/m-p/13668273#M164517</link>
      <description>&lt;P&gt;I've been reading that this is possible and have seen a few examples on reddit and other websites. I'm trying to put together one of the scripts for myself to help save me time in the long run. I've watched a few tutorials and read a bunch but I'm still running into an issue getting off to a full sprint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is as follows: I should have all possible locations mapped out in the layout that I can then export coordinates from for the individual text blocks, device blocks, and their position in the viewport and using this coordinate information to build my VBA script in excel? Or am I overthinking it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 17:33:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/question-about-using-vba-script-in-excell-to-automate-single/m-p/13668273#M164517</guid>
      <dc:creator>Jason_SniderWUKJ8</dc:creator>
      <dc:date>2025-06-05T17:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using VBA script in Excell to automate single-line generation.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/question-about-using-vba-script-in-excell-to-automate-single/m-p/13668796#M164531</link>
      <description>&lt;P&gt;If I understand your request, first the sample dwg had no viewports setup. You can get only objects from model space that are within a window the size of the viewport.&amp;nbsp; You use the trans function. to work out the window points based on the viewport.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A viewport has the following properties. Using (entget (car (entsel "\nPick viewport")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PICK((-1 . &amp;lt;Entity name: de2c2e30&amp;gt;) (0 . "VIEWPORT") (5 . "3BDF7") (330 . &amp;lt;Entity name: da4e8e90&amp;gt;) (100 . "AcDbEntity") (67 . 1) (410 . "Detail") (8 . "WACHTER-LABELS") (100 . "AcDbViewport") (10 17.9844497372394 11.999999517336 0.0) (40 . 35.8910603099105) (41 . 23.8691006458669) (68 . 2) (69 . 2) (12 20.5584427374715 14.756579553713 0.0) (13 0.0 0.0 0.0) (14 0.5 0.5 0.0) (15 0.5 0.5 0.0) (16 0.0 0.0 1.0) (17 0.0 0.0 0.0) (42 . 50.0) (43 . 0.0) (44 . 0.0) (45 . 49.0016811663871) (50 . 0.0) (51 . 0.0) (72 . 1000) (90 . 819296) (1 . "") (281 . 0) (71 . 1) (74 . 0) (110 0.0 0.0 0.0) (111 1.0 0.0 0.0) (112 0.0 1.0 0.0) (79 . 0) (146 . 0.0) (170 . 0) (61 . 5) (348 . &amp;lt;Entity name: da4e9f90&amp;gt;) (292 . 1) (282 . 1) (141 . 0.0) (142 . 0.0) (63 . 250) (421 . 3355443) (361 . &amp;lt;Entity name: da554360&amp;gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dxf 10 is centroid,&amp;nbsp;40 is length.,&amp;nbsp;41 is width&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you get centroid and add 1/2 the width and length to work out the 2 corner points, then use (trans minpt 3 0) &amp;amp; (trans maxpt 3 0), this will give you the 2 corner points in model and you can use (ssget "WP" pts '((0 . "insert"))) to get say all the blocks then get insertion points and send to excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully all that makes sense. If correct provide a better sample dwg properly setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 01:17:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/question-about-using-vba-script-in-excell-to-automate-single/m-p/13668796#M164531</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-06-06T01:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using VBA script in Excell to automate single-line generation.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/question-about-using-vba-script-in-excell-to-automate-single/m-p/13670356#M164544</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15558065"&gt;@Jason_SniderWUKJ8&lt;/a&gt;&amp;nbsp;The are no viewports at the layouts in Paper Space, neither are Text Blocks or Device&amp;nbsp; Block at Model Space&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 21:08:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/question-about-using-vba-script-in-excell-to-automate-single/m-p/13670356#M164544</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2025-06-06T21:08:36Z</dc:date>
    </item>
  </channel>
</rss>

