<?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: Civil 3D Points from .CSV LISP = &amp;quot;too many arguments&amp;quot; in Civil 3D 2025 in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747178#M165551</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/479717"&gt;@EBDBC3D&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad you got it working, but I'm worried that you're just kicking the can down the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This note from ChatGPT makes me think you overwrote your 'close' function somewhere else (not in this lisp file, but ANY other one you're running)...&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Skip the problematic close function - let AutoLISP handle cleanup
;; In Civil 3D 2025, the close function appears to have a different signature
;; The file will be closed automatically when the variable goes out of scope
(setq file-handle nil)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should try to find the error instead of avoiding it. The code I wrote will be MUCH better than AI's when you start using it regularly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this simple code and tell us if the successful text file pops up. If it is successful, then it's not your 'close' function like I suspect, but probably another function that was overwritten. Be sure to always declare proper local variables and not to overwrite default function symbols.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:TEST ( / fPath f)
  (setq fPath (vl-filename-mktemp "XX.txt"))
  (setq f (open fPath "w"))
  (write-line "Success" f)
  (close f)
  (startapp "notepad" fPath)
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just my thoughts on it.. but what would I know..&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2025 21:04:17 GMT</pubDate>
    <dc:creator>CodeDing</dc:creator>
    <dc:date>2025-07-30T21:04:17Z</dc:date>
    <item>
      <title>Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746432#M165524</link>
      <description>&lt;P&gt;When I try to run the attached LISP routine in Civil 3D 2025.2.2, I get a "too many arguments" error after picking any .CSV file. Is there a way to update it to work with this version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the LISP routine here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10137145/highlight/true#M7211" target="_blank"&gt;https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10137145/highlight/true#M7211&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 13:26:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746432#M165524</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2025-07-30T13:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746500#M165527</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Perhaps the issue is the csv file&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;If you don't mind, Can you post your csv file here?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 13:56:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746500#M165527</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2025-07-30T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746539#M165529</link>
      <description>&lt;P&gt;Here's a csv file I tested it on.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 14:15:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746539#M165529</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2025-07-30T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746696#M165533</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/479717"&gt;@EBDBC3D&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why not just create a custom point file format?&lt;/P&gt;&lt;P&gt;See my image below. I added "NU" as a comment so it would ignore the header row.&lt;/P&gt;&lt;P&gt;This would be better than having to use a custom lisp I believe.&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="image.png" style="width: 719px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1557167i43577F00F633C768/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 15:27:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746696#M165533</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2025-07-30T15:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746743#M165537</link>
      <description>&lt;P&gt;I know how to import points, but I'm trying to get the functionality from this LISP to work as part of something else. I'm wondering why it works in earlier versions but not Civil 3D 2025.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 15:52:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746743#M165537</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2025-07-30T15:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746856#M165541</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Only thing i can think of is if somehow the &lt;EM&gt;Str2List&lt;/EM&gt; function is redefined by another function of the same name that accepts one less argument than the loaded&amp;nbsp;&lt;EM&gt;Str2List&lt;/EM&gt;&amp;nbsp;function, then it would result to "too many arguments"&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;If that is the case, it would be better to place the&amp;nbsp;&lt;EM&gt;Str2List&lt;/EM&gt;&amp;nbsp; function as local, that way, that version of the function&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:csvTOCivil (/ Str2List C3D C3DDOC D DATA F FILEPATH I LN OCOGO OK POINTS)
(vl-load-com)
;;;str2list by John Uhden, as posted to the adesk customization newsgroup a long time ago
(defun Str2List	(str pat / i j n lst)
  (cond
    ((/= (type str) (type pat) 'STR))
    ((= str pat) '(""))
    (T
     (setq i 0
	   n (strlen pat)
     )
     (while (setq j (vl-string-search pat str i))
       (setq lst (cons (substr str (1+ i) (- j i)) lst)
	     i	 (+ j n)
       )
     )
     (reverse (cons (substr str (1+ i)) lst))
    )
  )
)
....&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;We can clean up the current code if you want, it a bit of a mess now &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 16:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746856#M165541</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2025-07-30T16:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746882#M165543</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/479717"&gt;@EBDBC3D&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try this re-work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;; String to List  -  Lee Mac
;; Separates a string using a given delimiter
;; str - [str] String to process
;; del - [str] Delimiter by which to separate the string
;; Returns: [lst] List of strings
(defun LM:str-&amp;gt;lst ( str del / len lst pos )
    (setq len (1+ (strlen del)))
    (while (setq pos (vl-string-search del str))
        (setq lst (cons (substr str 1 pos) lst)
              str (substr str (+ pos len))
        )
    )
    (reverse (cons str lst))
)

(defun c:CSVTOCIVIL ( / GetC3D SmallestAvailablePointNumber fPath f ln data points num loc exPt ptNew)
  (vl-load-com)
  ;; Helper Function(s)
  (defun GetC3D ( / C3D)
    (setq	C3D (strcat "HKEY_LOCAL_MACHINE\\"
                      (if vlax-user-product-key
                        (vlax-user-product-key)
                        (vlax-product-key)
                      );if
              );strcat
          C3D (vl-registry-read C3D "Release")
          C3D (substr
                C3D
                1
                (vl-string-search "." C3D (+ (vl-string-search "." C3D) 1))
              );substr
          *C3D* (vla-getinterfaceobject
                  (vlax-get-acad-object)
                  (strcat "AeccXUiLand.AeccApplication." C3D)
                );vla-getinterfaceobject
          *docC3D* (vla-get-activedocument *C3D*)
    );setq
  );defun
  (defun SmallestAvailablePointNumber (pts / )
    (if (null *NextPtNo*)
      (setq *NextPtNo* 1)
    )
    (while
      (not
        (vl-catch-all-error-p
          (vl-catch-all-apply
            'vlax-invoke
            (list pts 'Find *NextPtNo*)
          )
        )
      )
      (setq *NextPtNo* (1+ *NextPtNo*))
    )
    *NextPtNo*
  )
  ;; ----- Begin Work -----
  (GetC3D)
  ;; Have user select point file
  (setq fPath
    (getfiled "Select TEXT file to read :"
              (getvar "dwgprefix")
              "csv"
              4
    )
  )
  ;; Ensure user selected a file
  (if (not fPath)
    (progn (prompt "\nNo file selected, exiting.") (exit))
  ;else, inform user of status
    (prompt (strcat "\nFile selected: " fPath))
  )
  ;; Read lines from file
  (prompt "\nReading file... ")
  (setq f (open fPath "r"))
  (read-line f) ;; ignore header line
  (while (setq ln (read-line f))
    (if (not (eq "" ln))
      (setq data (cons ln data))
    )
  )
  (close f)
  (prompt "Complete.")
  ;; Parse lines retrieved from file
  ;; CSV is in format: PENZ
  (prompt "\nParsing file data... ")
  (setq data
    (mapcar
     '(lambda (str / lst)
        (setq lst (LM:str-&amp;gt;lst str ";"))
        (list
          (atoi (car lst))      ; P
          (list
            (atof (cadr lst))   ; E (X)
            (atof (caddr lst))  ; N (Y)
            (atof (cadddr lst)) ; Z
          )
        )
      )
      (reverse data)
    )
  )
  (prompt "Complete.")
  ;; Create points in dwg
  (prompt "\nCreating points... ")
  (setq points (vlax-get *docC3D* 'Points))
  (foreach pt data
    (setq num (car pt) loc (cadr pt))
    ;; Create the point (a default number will be assigned automatically)
    (setq ptNew (vlax-invoke points 'Add loc))
    ;; Now, we test to see if our desired point number is available
    (setq exPt (vl-catch-all-apply 'vlax-invoke (list points 'Find num)))
    (if (vl-catch-all-error-p exPt)
      ;; Desired point number is available, assign it to point
      (vlax-put-property ptNew 'Number num)
      ;; else, The default number may NOT have been the smallest available number, let's assign the smallest available
      (vlax-put-property ptNew 'Number (setq num (SmallestAvailablePointNumber points)))
    )
    ;;----- Assign desired properties to point 'ptNew' -----
    ;(vlax-put-property ptNew 'Layer "0") ;; need to check if layer exists first!
    ;;------------------------------------------------------
    (prompt (strcat (itoa num) ", ")) ;; provide update to user
  )
  (prompt "Complete.")
  (prompt "\nCSVTOCIVIL Complete.")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output looks like:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Command: CSVTOCIVIL
File selected: C:\Users\me\Desktop\test.csv
Reading file... Complete.
Parsing file data... Complete.
Creating points... 1, 2, 3, Complete.
CSVTOCIVIL Complete.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 17:17:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746882#M165543</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2025-07-30T17:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746913#M165544</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5680873"&gt;@CodeDing&lt;/a&gt;&amp;nbsp;wrote:&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="image.png" style="width: 719px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1557167i43577F00F633C768/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Nice Dialog&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5680873"&gt;@CodeDing&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 17:32:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746913#M165544</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2025-07-30T17:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746947#M165545</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I did that, but still got the "too many arguments" error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 17:55:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746947#M165545</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2025-07-30T17:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746949#M165546</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Did that work in Civil 3D 2025? It gave me the "too many arguments" error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 17:55:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746949#M165546</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2025-07-30T17:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746999#M165547</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/479717"&gt;@EBDBC3D&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're right, I was testing in 2023.&lt;/P&gt;&lt;P&gt;But in 2025, I was getting a different error about ActiveX object being empty.&lt;/P&gt;&lt;P&gt;2025 for me was acting up if points did not already exist in the drawing. Try the new attached LSP file and see if that resolves it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated code portion:&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;.......
  (setq points (vlax-get *docC3D* 'Points))
  ;; In 2025+, in dwgs with no points, we need to initialize point creation manually for some reason...
  (setq ptCnt (vlax-get points 'Count))
  (if (and (&amp;gt;= (atoi (substr (getvar 'ACADVER) 1 2)) 25)
           (zerop ptCnt))
    (progn
      (setq cmd (getvar 'CMDECHO))
      (setvar 'CMDECHO 0)
      (setq e (entlast))
      (command "_AECCCREATEPOINTMANUAL" "non" '(0. 0. 0.) "" "" "")
      (if (and (not (equal e (setq e2 (entlast))))
               (eq "AECC_COGO_POINT" (cdr (assoc 0 (entget e2)))))
        (entdel e2)
      )
      (setvar 'CMDECHO cmd)
    )
  )
  (foreach pt data
.......&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 18:37:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13746999#M165547</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2025-07-30T18:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747041#M165548</link>
      <description>&lt;P&gt;Thanks, I'm still getting "too many arguments" with that implemented.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 19:23:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747041#M165548</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2025-07-30T19:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747050#M165549</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/479717"&gt;@EBDBC3D&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I'm still getting "too many arguments" with that implemented.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you're still getting that error, then you're going to need to do some more troubleshooting on your own. I've implemented as much as I can and receive no errors.&lt;/P&gt;&lt;P&gt;Things to try:&lt;/P&gt;&lt;P&gt;- Adding individual (prompt "...1,2,3...") statements between lines to verify where your error is happening.&lt;/P&gt;&lt;P&gt;- Check ANY and ALL other code you have to be sure you are not overwriting a default function symbol somewhere [ e.g. (setq null ....), (setq while ...) ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's working on my end in 2025.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 19:31:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747050#M165549</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2025-07-30T19:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747142#M165550</link>
      <description>&lt;P&gt;Thanks, I did get it working with a little/lot of AI help. Seemed like multiple things were causing the error as it kept moving farther in the process as I fixed things. I've attached the new version in case anyone needs it.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 20:27:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747142#M165550</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2025-07-30T20:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747178#M165551</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/479717"&gt;@EBDBC3D&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad you got it working, but I'm worried that you're just kicking the can down the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This note from ChatGPT makes me think you overwrote your 'close' function somewhere else (not in this lisp file, but ANY other one you're running)...&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Skip the problematic close function - let AutoLISP handle cleanup
;; In Civil 3D 2025, the close function appears to have a different signature
;; The file will be closed automatically when the variable goes out of scope
(setq file-handle nil)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should try to find the error instead of avoiding it. The code I wrote will be MUCH better than AI's when you start using it regularly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this simple code and tell us if the successful text file pops up. If it is successful, then it's not your 'close' function like I suspect, but probably another function that was overwritten. Be sure to always declare proper local variables and not to overwrite default function symbols.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:TEST ( / fPath f)
  (setq fPath (vl-filename-mktemp "XX.txt"))
  (setq f (open fPath "w"))
  (write-line "Success" f)
  (close f)
  (startapp "notepad" fPath)
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just my thoughts on it.. but what would I know..&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 21:04:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13747178#M165551</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2025-07-30T21:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13748077#M165568</link>
      <description>&lt;P&gt;I get the "too many arguments" with your code too. Maybe my Civil 3D install is broken.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 11:33:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13748077#M165568</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2025-07-31T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3D Points from .CSV LISP = "too many arguments" in Civil 3D 2025</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13748464#M165569</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/479717"&gt;@EBDBC3D&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you load other Lisp files into your drawings? If so, you need to review ALL of them to check if "close" is being redefined soemwhere.. It would look like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun close .....
...or...
(setq close (lambda .....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do NOT load ANY other Lisp files (or custom add ons) then you should consider a new install of C3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 16:08:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/civil-3d-points-from-csv-lisp-quot-too-many-arguments-quot-in/m-p/13748464#M165569</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2025-07-31T16:08:09Z</dc:date>
    </item>
  </channel>
</rss>

