<?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: Error, Malformed String on Input in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837354#M32822</link>
    <description>&lt;P&gt;&lt;SPAN&gt;(TAGSOUT TITLE-CUSTOMER")&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 19:20:47 GMT</pubDate>
    <dc:creator>dbroad</dc:creator>
    <dc:date>2023-03-21T19:20:47Z</dc:date>
    <item>
      <title>Error, Malformed String on Input</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837239#M32820</link>
      <description>&lt;P&gt;Autocad 2021.&amp;nbsp; I am getting a "exited:&amp;nbsp; malformed string on input" when my acad.lsp loads.&amp;nbsp; Acad.lsp contains the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun s::startup ()&lt;BR /&gt;(load "InsertBlocks.lsp")&lt;BR /&gt;(load "revcloud.lsp")&lt;BR /&gt;(load "METALSA_TB_OUT.lsp")&lt;BR /&gt;(load "Challenge_TB_In.lsp")&lt;BR /&gt;(load "Challenge_TB_Out.lsp")&lt;BR /&gt;(load "FD_NG_TB_IN.lsp")&lt;BR /&gt;(load "FD_NG_TB_OUT.lsp")&lt;BR /&gt;(load "METALSA_TB_IN.lsp")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched the interwebs for an answer/solution, but I have been unable to determine my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RH&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 18:20:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837239#M32820</guid>
      <dc:creator>raceharder</dc:creator>
      <dc:date>2023-03-21T18:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error, Malformed String on Input</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837269#M32821</link>
      <description>&lt;P&gt;I have determined that my error is within the Challenge_TB_Out.lsp.&amp;nbsp; I still am unable to determine what, exactly the issue is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a copy of the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun C:CHTBout ()&lt;BR /&gt;(print "you are in K: ftbout")&lt;BR /&gt;(setq dwgnme (getvar "DWGNAME"))&lt;BR /&gt;(setq homedir (getvar "DWGPREFIX"))&lt;BR /&gt;(print "looking for the next line")&lt;BR /&gt;(print homedir)&lt;BR /&gt;(setq ttlfil (strcat homedir "\\Challengetitleblk.txt"))&lt;BR /&gt;; (setq ttlfil (strcat homedir "Challengetitleblk.txt")&lt;BR /&gt;(setq ttlfil (open ttlfil "w"))&lt;BR /&gt;;THERE WAS AN EXTRA ")" AT THE BEGINNING OF THIS LINE THAT I REMOVED&lt;BR /&gt;;SO THAT THE LOAD_ALL_LISP FILE DOESN'T THROW A SYNTAX ERROR&lt;BR /&gt;;J.SHORT 05.13.19&lt;BR /&gt;&lt;BR /&gt;(print "after setting ttfil and it is ") (print ttlfil)&lt;/P&gt;&lt;P&gt;; These are the tags that we want&lt;BR /&gt;; variables copied to each drawing the in package&lt;BR /&gt;;(print "before TAGSOUT")&lt;BR /&gt;(print "before TAGSOUT")&lt;BR /&gt;(TAGSOUT "Name")&lt;BR /&gt;(print "after title_line1 to TAGSOUT")&lt;BR /&gt;(TAGSOUT TITLE-CUSTOMER")&lt;BR /&gt;(TAGSOUT "TITLE-DESLDR1")&lt;BR /&gt;(TAGSOUT "TITLE-DESLDR2")&lt;BR /&gt;(TAGSOUT "TITLE-DESSRC1")&lt;BR /&gt;(TAGSOUT "TITLE-DESSRC2")&lt;BR /&gt;(TAGSOUT "TITLE-DIVISION")&lt;BR /&gt;(TAGSOUT "TITLE-DWGNUM")&lt;BR /&gt;;(TAGSOUT "DATE_TB")&lt;BR /&gt;(TAGSOUT "TITLE-ENG1")&lt;BR /&gt;;(print "calling tagsout with date ")&lt;BR /&gt;(TAGSOUT "PROGRAM_NAME")&lt;BR /&gt;(TAGSOUT "TITLE-ENG2")&lt;BR /&gt;(TAGSOUT "TITLE-PACKAGE-DESCRIPTION-LINE1")&lt;/P&gt;&lt;P&gt;;(print "after call to TAGSOUT")&lt;BR /&gt;;added 12/2009 for NextGen Titleblock&lt;BR /&gt;(TAGSOUT "TITLE-PACKAGE-DESCRIPTION-LINE2")&lt;BR /&gt;(TAGSOUT "TITLE-PROG-BOTTOMLINE")&lt;BR /&gt;;(TAGSOUT "DIV_NAME")&lt;BR /&gt;;(TAGSOUT "PLANT_NAME")&lt;BR /&gt;;(TAGSOUT "LOC_ACT")&lt;BR /&gt;(TAGSOUT "TITLE-PROGMIDDLELINE")&lt;BR /&gt;(TAGSOUT "TITLE-PROGTOPLINE")&lt;BR /&gt;(TAGSOUT "TITLE-RELDATE")&lt;BR /&gt;(TAGSOUT "TITLE-REVDATE")&lt;BR /&gt;(TAGSOUT "TITLE-REVLETTER")&lt;BR /&gt;(TAGSOUT "TITLE-SECTION")&lt;BR /&gt;(TAGSOUT "TITLE-SHEETNUM")&lt;BR /&gt;(TAGSOUT "TITLE-SHT-DESCRIPTION-LINE1")&lt;BR /&gt;(TAGSOUT "TITLE-SHT-DESCRIPTION-LINE2")&lt;BR /&gt;(TAGSOUT "TITLE-SYS/TOOL")&lt;BR /&gt;(TAGSOUT "TITLE-TOTSHEET")&lt;/P&gt;&lt;P&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;BR /&gt;(close ttlfil)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;) ; end FTBout&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;;&lt;BR /&gt;;;Finds Tag Values, All Blocks&lt;BR /&gt;;;===========================================================&lt;BR /&gt;(defun TAGSOUT (tagname / newv ss1 len count bn en el found attstr)&lt;BR /&gt;;(defun TAGSOUT (tagname)&lt;BR /&gt;;=================create selection set=======================&lt;BR /&gt;(print "at top of TAGSOUT tagname is ") (print tagname)&lt;BR /&gt;(setq ss1 (ssget "x" '((0 . "insert") (66 . 1)))&lt;BR /&gt;len (sslength ss1)&lt;BR /&gt;count 0&lt;BR /&gt;)&lt;BR /&gt;;(print "len is ")(print len)&lt;/P&gt;&lt;P&gt;(repeat len&lt;BR /&gt;;(print "in repeat len")&lt;BR /&gt;(setq bn (ssname ss1 count) ;Block Name&lt;BR /&gt;en (entnext bn) ;Entity Name&lt;BR /&gt;el (entget en)) ;Entity List&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;=================loop thru block entities===================&lt;/P&gt;&lt;P&gt;(while (and (= "ATTRIB" (dxf 0 el))&lt;BR /&gt;(/= "SEQEND" (dxf 0 el)))&lt;BR /&gt;;(print "(dxf 2 el) before if is ")(print (dxf 2 el))&lt;BR /&gt;(if (= (dxf 2 el) (strcase tagname))&lt;BR /&gt;(progn&lt;/P&gt;&lt;P&gt;;(print "(dxf 2 el) is ")(print (dxf 2 el))&lt;BR /&gt;(setq attstr (dxf 1 el))&lt;BR /&gt;;(print "(dxf 1 el) is ")(print (dxf 1 el))&lt;BR /&gt;(print "attstr is ")(print attstr)&lt;/P&gt;&lt;P&gt;(write-line attstr ttlfil)&lt;BR /&gt;;(setq el (subst (cons 1 newv) (assoc 1 el) el))&lt;/P&gt;&lt;P&gt;;(entmod el) ;Modify List&lt;BR /&gt;;(entupd bn) ;Update Screen&lt;BR /&gt;(setq found "yes") ;Found Tag?&lt;BR /&gt;);progn&lt;BR /&gt;) ;if&lt;BR /&gt;(setq en (entnext en)&lt;BR /&gt;el (entget en))&lt;BR /&gt;);while&lt;BR /&gt;(setq count (1+ count))&lt;BR /&gt;;(print "before repeat")&lt;BR /&gt;) ;repeat&lt;BR /&gt;(if (/= found "yes")&lt;BR /&gt;(princ "\nTag Not Found.")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(princ "at end of TAGSOUT")&lt;BR /&gt;);defun TAGSOUTout.lsp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;======================dxf function==========================&lt;BR /&gt;(defun dxf (code elist)&lt;BR /&gt;(cdr (assoc code elist))&lt;BR /&gt;);dxf&lt;BR /&gt;(princ)&lt;BR /&gt;;============================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again, any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 18:39:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837269#M32821</guid>
      <dc:creator>raceharder</dc:creator>
      <dc:date>2023-03-21T18:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error, Malformed String on Input</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837354#M32822</link>
      <description>&lt;P&gt;&lt;SPAN&gt;(TAGSOUT TITLE-CUSTOMER")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:20:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837354#M32822</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2023-03-21T19:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error, Malformed String on Input</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837356#M32823</link>
      <description>&lt;P&gt;Thanks man........I've been looking at this for hours and never saw that.&amp;nbsp; All good now.&amp;nbsp; Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 19:23:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11837356#M32823</guid>
      <dc:creator>raceharder</dc:creator>
      <dc:date>2023-03-21T19:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error, Malformed String on Input</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11838063#M32824</link>
      <description>&lt;P&gt;This reminds me of an old check brackets that I wrote for finding missing quotes etc I might revisit it and add look for "" pairs just a case of which character to look for. So { } () and ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its something I often get and would be handy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; look for double qoutes
; By Alan H
(defun c:chkbrk ( / )
(setvar "cmdecho" 0)
(alert "\nlook at file\n\n to see how many open brackets\n\nlook for missing at end of lines")
(SETQ chekdfile (getfiled "Enter file name:" " " "LSP" 4))
(setq opf (open chekdfile "r"))
(setq wkfile (open (strcat chekdfile "-copy.lsp") "w"))
(while
(setq currentln (read-line opf))
(setq x 1)
(setq bkt 0)
(while (&amp;lt; X (strlen currentln))
(repeat (strlen currentln)
(princ (strcat "\n" (setq ltr (substr currentln x 1))))
(if (= ltr "\"")(setq bkt (1+ bkt)))
(if (= bkt 2) (setq bkt 0))
(setq x (1+ x))
)
)
(setq ncln (strcat currentln "-" (rtos bkt 2 0)))
(princ (rtos bkt))
(write-line ncln wkfile)
)
(close wkfile)
(close opf)
(princ)
)
(c:chkbrk)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 04:54:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11838063#M32824</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-03-22T04:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error, Malformed String on Input</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11839034#M32825</link>
      <description>&lt;P&gt;No worries. I have the same problem from time to time.&amp;nbsp; If you use vlide, the color coding can help find these errors since strings show up as a unique color.&amp;nbsp; It was easy to find on this thread. I just searched for " and it highlighted every quote.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 12:28:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11839034#M32825</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2023-03-22T12:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error, Malformed String on Input</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11840941#M32826</link>
      <description>&lt;P&gt;Thanks Dbroad, I rarely use Vlide but Notepad++ can do similar. Click on end of line.&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="SeaHaven_0-1679539848198.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1192230i0808AD5C0FC8C4DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1679539848198.png" alt="SeaHaven_0-1679539848198.png" /&gt;&lt;/span&gt;&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="SeaHaven_1-1679539897031.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1192231i74E61EECADA2B16E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_1-1679539897031.png" alt="SeaHaven_1-1679539897031.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Its a bit clunky.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 02:53:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-malformed-string-on-input/m-p/11840941#M32826</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-03-23T02:53:58Z</dc:date>
    </item>
  </channel>
</rss>

