<?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: AutoCAD LT 2024 LISP similar to ATTOUT in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055473#M8621</link>
    <description>&lt;P&gt;Try this little change. Adds a ' character to Handle.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Get the handle and block name
   (setq handle (cdr (assoc 5 ent)))
     (setq handle (strcat "'" handle)); &amp;lt;------------ add this line
   (setq blockName (cdr (assoc 2 ent)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 17:55:23 GMT</pubDate>
    <dc:creator>ec-cad</dc:creator>
    <dc:date>2024-09-30T17:55:23Z</dc:date>
    <item>
      <title>AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13048227#M8619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attached is a LISP to extract block attributes to a CSV file. The issue is that the handler does not have a prefix single quote when exported to the CSV file, unlike when we use ATTOUT in AutoCAD. Perhaps someone can help with this and create a LISP similar to ATTIN.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 20:20:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13048227#M8619</guid>
      <dc:creator>roberto_ortizKVL98</dc:creator>
      <dc:date>2024-09-26T20:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055141#M8620</link>
      <description>&lt;P&gt;This thread had similar issues. Perhaps it can help you out. I have full autocad so my help is limited.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/an-automation-that-requires-excellent-knowledge-of-the-language/td-p/13009184" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/an-automation-that-requires-excellent-knowledge-of-the-language/td-p/13009184&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 15:41:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055141#M8620</guid>
      <dc:creator>LDShaw</dc:creator>
      <dc:date>2024-09-30T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055473#M8621</link>
      <description>&lt;P&gt;Try this little change. Adds a ' character to Handle.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Get the handle and block name
   (setq handle (cdr (assoc 5 ent)))
     (setq handle (strcat "'" handle)); &amp;lt;------------ add this line
   (setq blockName (cdr (assoc 2 ent)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 17:55:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055473#M8621</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-09-30T17:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055835#M8622</link>
      <description>Thanks for the help. Now it shows in the CSV file.</description>
      <pubDate>Mon, 30 Sep 2024 21:28:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055835#M8622</guid>
      <dc:creator>roberto_ortizKVL98</dc:creator>
      <dc:date>2024-09-30T21:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055846#M8623</link>
      <description>&lt;P&gt;Thanks for all your responses. The last responder resolved the issue, but now I'm facing a new challenge. I have a code similar to ATTIN, and it appears it can't locate the handler, with or without the 'single quote' prefix. Can anyone help identify the issue with the Lisp?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exact error&amp;nbsp;&lt;/P&gt;&lt;P&gt;Block with handle CBC6 not found.&lt;BR /&gt;Block with handle CBC6 not found.&lt;BR /&gt;Block attributes updated successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 blocks were selected on this example.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 21:35:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13055846#M8623</guid>
      <dc:creator>roberto_ortizKVL98</dc:creator>
      <dc:date>2024-09-30T21:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057669#M8624</link>
      <description>&lt;P&gt;In this snipit of code: you did not 'increment' the index variable "i".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(repeat (setq i (length headers))
                  (setq attrTag (nth i headers))     ;; Get the attribute tag from header
                  (setq attrVal (nth i attrList))    ;; Get the corresponding attribute value from CSV

                  ;; If the attribute exists, update its value
                  (setq ent (entget (entnext block)))
                  (while (and ent (= (cdr (assoc 0 ent)) "ATTRIB"))
                    (if (equal (cdr (assoc 2 ent)) attrTag)
                      (entmod (subst (cons 1 attrVal) (assoc 1 ent) ent))  ;; Update the attribute value
                    )
                    (setq ent (entget (entnext block))) ;; Move to the next attribute
                  )
                )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless for each line in the .csv, there is only (1) Attribute Tag and Value.&lt;/P&gt;&lt;P&gt;If the (setq block (handent handle)) line doesn't get the 'entity', maybe try&lt;/P&gt;&lt;P&gt;(setq block (ssget "x" (list (cons 5 handle))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:46:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057669#M8624</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-10-01T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057686#M8625</link>
      <description>&lt;P&gt;Thanks, ec-cad But what about the "&lt;SPAN&gt;Block with handle CBC6 not found?" This CBC6 was the first block on the list.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:43:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057686#M8625</guid>
      <dc:creator>roberto_ortizKVL98</dc:creator>
      <dc:date>2024-10-01T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057715#M8626</link>
      <description>&lt;P&gt;I would need to look at the 'data' and the drawing to determine that.&lt;/P&gt;&lt;P&gt;Either (handent&amp;nbsp; or (ssget .. with the correct Handle string (should) work.&lt;/P&gt;&lt;P&gt;Looks like it's not 'finding' that particular block insert.&lt;/P&gt;&lt;P&gt;Also, why did it echo that not found twice ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you upload the .csv and sample drawing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057715#M8626</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-10-01T16:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057795#M8627</link>
      <description>&lt;P&gt;Here you go&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057795#M8627</guid>
      <dc:creator>roberto_ortizKVL98</dc:creator>
      <dc:date>2024-10-01T17:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057865#M8628</link>
      <description>&lt;P&gt;I made up a small drawing for testing attin.lsp.&lt;/P&gt;&lt;P&gt;This is the 1st line of the .csv (saved as a text file, so characters show)&lt;BR /&gt;Handle,Block Name,ROOMAREA,ROOM#&lt;/P&gt;&lt;P&gt;And, after function: (readDelimitedLine ..&lt;BR /&gt;This is what it returns:&lt;BR /&gt;(HANDL BLOCK NAM ROOMARE ROOM#)&lt;BR /&gt;('AE ROO 444)&lt;/P&gt;&lt;P&gt;Looks like it is clipping off 'last' character of delimited variables.&lt;/P&gt;&lt;P&gt;Trying to find out why that function does that... looks good, but doesn't work.&lt;/P&gt;&lt;P&gt;I'll be back later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:02:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057865#M8628</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-10-01T18:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057889#M8629</link>
      <description>&lt;P&gt;And, at command prompt line, this happens.&lt;/P&gt;&lt;P&gt;Command: (setq line "Handle,Block Name,ROOMAREA,ROOM#")&lt;BR /&gt;"Handle,Block Name,ROOMAREA,ROOM#"&lt;/P&gt;&lt;P&gt;Command: (setq delimiter ",")&lt;BR /&gt;","&lt;/P&gt;&lt;P&gt;Command: (setq start 1)&lt;BR /&gt;1&lt;/P&gt;&lt;P&gt;Command: (setq end (vl-string-search delimiter line start))&lt;BR /&gt;6&lt;/P&gt;&lt;P&gt;Command: (setq ch (substr line start (- end start)))&lt;BR /&gt;"Handl"&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:11:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057889#M8629</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-10-01T18:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057904#M8630</link>
      <description>&lt;P&gt;Try this change in the function readDelimitedLine:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Helper function to split a CSV line into a list of values
(defun readDelimitedLine (line delimiter / start end valList)
  (setq start 1)
  (while (setq end (vl-string-search delimiter line start))
    (if (&amp;gt; end 0)(setq valList (append valList (list (substr line start (- (+ end 1) start))))))
    (setq start (+ end 2)) ;; Move start position to after delimiter
  )
  ;; Add the last value (after the last delimiter)
  (setq valList (append valList (list (substr line start))))
  valList
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057904#M8630</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-10-01T18:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057917#M8631</link>
      <description>&lt;P&gt;Now its hanging up in the while loop, checking block attributes.&lt;/P&gt;&lt;P&gt;Did this one 'ever' run ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:23:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13057917#M8631</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-10-01T18:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13058144#M8632</link>
      <description>&lt;P&gt;OK, I think I got it working.&lt;/P&gt;&lt;P&gt;Attached.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 20:28:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13058144#M8632</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-10-01T20:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13058201#M8633</link>
      <description>&lt;P&gt;Thank you, ECCAD! It is indeed working. Apologize for not responding in a timely manner. Anyway, your alias fits you. Now in AutoCAD LT we have a similar function as ATTOUT and ATTIN.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 21:08:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13058201#M8633</guid>
      <dc:creator>roberto_ortizKVL98</dc:creator>
      <dc:date>2024-10-01T21:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT 2024 LISP similar to ATTOUT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13239080#M8634</link>
      <description>&lt;P&gt;You can also try the extended ATTOUT/ATTIN tool (processes also dynamic blocks and their properties) supported in AutoCAD LT. See (free download):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cadforum.cz/en/extended-attout-attin-for-block-attribute-management-in-excel-tip14361" target="_blank"&gt;https://www.cadforum.cz/en/extended-attout-attin-for-block-attribute-management-in-excel-tip14361&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.arkance.world" target="_blank"&gt;www.arkance.world&lt;/A&gt;&amp;nbsp; -&amp;nbsp; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:23:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-2024-lisp-similar-to-attout/m-p/13239080#M8634</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2025-01-02T15:23:37Z</dc:date>
    </item>
  </channel>
</rss>

