<?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: Progress Bar in lisp code in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723944#M15052</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3520615"&gt;@mhy3sx&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;&lt;P&gt;The code is not mine and it is too complicate for me. Can any one add the progress bar in the code?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This code is not mine either. So adding my suggestion is complicated for me too.&lt;BR /&gt;If you want to try this version which is mine, for me it's simpler.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 01:46:34 GMT</pubDate>
    <dc:creator>CADaSchtroumpf</dc:creator>
    <dc:date>2024-04-22T01:46:34Z</dc:date>
    <item>
      <title>Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12722940#M15043</link>
      <description>&lt;P&gt;Hi, I use this code to insert points in a drawing from a coordinate file. The problem is that when I have a lot of coordinates in the file the code is a little slow, so I want to have a progress bar to look the progress of the insert points. Can anyone help me to update the code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 07:09:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12722940#M15043</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-21T07:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723266#M15044</link>
      <description>&lt;P&gt;Is possible to do this?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 13:26:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723266#M15044</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-21T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723363#M15045</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the link&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.afralisp.net/archive/lispa/lisp53.htm" target="_blank"&gt;https://www.afralisp.net/archive/lispa/lisp53.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 15:10:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723363#M15045</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2024-04-21T15:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723406#M15046</link>
      <description>Hi hosneyalaa , I have seen this link but I don't know how to use it in my code. In this link have a dcl menu with start button , I wan't to start when insert the points and in some way this progress bar will be related with the number of the points in the file. Can you help with the code ?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sun, 21 Apr 2024 15:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723406#M15046</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-21T15:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723515#M15047</link>
      <description>&lt;P&gt;unfortunately cannot call up a dialog box while inserting points into the drawing area&lt;/P&gt;&lt;P&gt;you might be able to implement express tools progress bar version in the status area but just not as apparent:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.augi.com/showthread.php?46371-The-Progress-Bar-in-the-AutoCAD-status-Area" target="_blank"&gt;https://forums.augi.com/showthread.php?46371-The-Progress-Bar-in-the-AutoCAD-status-Area&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 17:48:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723515#M15047</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-04-21T17:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723552#M15048</link>
      <description>&lt;P&gt;Give this a try, it's up to you to insert it into your code...&lt;/P&gt;&lt;LI-CODE lang="general"&gt;((lambda ( / a size b line progress i)
  (setq a (getfiled "Points data file" "" "" 4))
  (if (= a 1)
    (progn
      (setq a "")
      (while (eq (findfile a) ())
        (setq a (getstring "\nPoints data file"))
        (if (= a ()) (setq a ""))
        (if (not (findfile a))
          (princ "\nFile name not found or invalid!")
        )
      )
    )
  )
  (cond
    (a
      (setq
        size (vl-file-size a)
        b (open a "r")
        a (read-line b)
        line (strlen a)
        progress (fix (/ size line))
        i 0
      )
      (acet-ui-progress-init "Working:" progress)
      (while a
        (setq a (read-line b))
        (acet-ui-progress-safe (setq i (1+ i)))
      )
      (acet-ui-progress)
      (close b)
    )
  )
  (prin1)
))&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 21 Apr 2024 18:30:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723552#M15048</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2024-04-21T18:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723678#M15049</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3520615"&gt;@mhy3sx&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;DOSLIB has a dos_progressbar function that will do what you want.&amp;nbsp; And it's free.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 20:50:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723678#M15049</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-04-21T20:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723721#M15050</link>
      <description>&lt;P&gt;The code is not mine and it is too complicate for me. Can any one add the progress bar in the code?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 21:47:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723721#M15050</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-21T21:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723915#M15051</link>
      <description>&lt;P&gt;Happy to do send the beer to ...........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having a go at doing it is all part of the learning process. Close the dcl and run the import function the sample acet code above can be used.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 01:11:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723915#M15051</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-22T01:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723944#M15052</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3520615"&gt;@mhy3sx&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;&lt;P&gt;The code is not mine and it is too complicate for me. Can any one add the progress bar in the code?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This code is not mine either. So adding my suggestion is complicated for me too.&lt;BR /&gt;If you want to try this version which is mine, for me it's simpler.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 01:46:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12723944#M15052</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2024-04-22T01:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724119#M15053</link>
      <description>&lt;P&gt;Another example.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; EXAMPLE LISP SHORT VERSION
(defun c:test(/ progress)
(defun progressbar (a b c d)
(cond ((= 0 a)
(acet-ui-progress-init d 100)
(setq c 0)
)
((= 1 a)
(setq c (+ (/ 100.0 b) c))
(acet-ui-progress-safe c)
)
((= 2 a)
(acet-ui-progress-done)
)
)
c
)
; I would read the file and make a list here of PENZD

(setq repeatvariable 1000) ; change to (setq repeatvariable (length list))
(setq progress (Progressbar 0 repeatvariable progress "Processing:")) ;Create the progress bar, total length is repeatvariable or 10000
(repeat repeatvariable
(setq progress (Progressbar 1 repeatvariable progress "")) ;arg (a) is set to 1 and (d) can be blank here
; do your read item from list and make new points
)
(Progressbar 2 0 0 "") ;arg(a) is set to 2 to close the progress bar, arg (b), (c) &amp;amp; (d) can be blanks
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Apr 2024 04:52:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724119#M15053</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-22T04:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724120#M15054</link>
      <description>Hi CADaSchtroumpf, I try your code but ask for a lot of settings and at the end not insert anything. I will stay with my code.</description>
      <pubDate>Mon, 22 Apr 2024 04:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724120#M15054</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-22T04:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724127#M15055</link>
      <description>Hi Sea-Haven. How to add this code in pointsin.lsp ?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 22 Apr 2024 05:01:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724127#M15055</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-22T05:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724130#M15056</link>
      <description>&lt;P&gt;Again because you have posts here and Cadtutor and The swamp its confusing just put a post to put all suggestion to one forum I know&amp;nbsp; will look at others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re points in looking at code and think could be halved, seems to have to many steps, as no dwg showing result required makes it a bit harder. Like John K "The Swamp" I would just write it all from scratch with all your requests contained in one program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for sample text file.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 05:02:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724130#M15056</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-22T05:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724352#M15057</link>
      <description>&lt;P&gt;Ok you are right. I put all together in this post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I want to add a dcl menu&amp;nbsp; in the code. I write this part of the code, the lisp run ,open dcl file , select the coordinate file&amp;nbsp; but gives me this error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error: malformed list on input&lt;BR /&gt;error: invalid argument type: listp:&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;, and I can not find what is the problem&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;LI-CODE lang="lisp"&gt;(defun PI:GETFILEFORMAT (/ )

      (defun *error* ( / *error* dch dcl des)
        (if (and (= 'int (type dch)) (&amp;lt; 0 dch))
          (unload_dialog dch)
        )
        (if (= 'file (type des))
          (close des)
        )
        (if (and (= 'str (type dcl)) (findfile dcl))
          (vl-file-delete dcl)
        )

        (princ)
      ) ; end defun
     
      (cond
        ( (not
            (setq dcl (vl-filename-mktemp nil nil ".dcl")
                 des (open dcl "w")
            ) ; end setq
          ) ; end not
          (princ "\nUnable to open DCL for writing.")
        )
        ( (progn
            (foreach str '(
                            "ed : edit_box { alignment = left; width = 20; edit_width = 10; fixed_width = true;}"
                            ""
                            "pointsin : dialog { spacer; key = \"dcl\";"
                            " : boxed_column { label = \"Text Style\"; height = 1.0;}"
                            "      : radio_button { height = 1.0; width = 20; is_tab_stop = true;"
                            "        key = \"radio_button01\"; label = \"1. PNEZD (comma delimited)\";"
                            "    }" ; radio_button 
                            "      : radio_button  { height = 1.0; width = 20; is_tab_stop = true;"
                            "        key = \"radio_button02\"; label = \"2.  PNEZD (tab delimited)\";"
                            "    }" ; radio_button 
                            "      : radio_button  { height = 1.0; width = 20; is_tab_stop = true;"
                            "        key = \"radio_button03\"; label = \"3.PNEZD (white-space delimited)\";"
                            "    }" ; radio_button 
                            "      : radio_button  { height = 1.0; width = 20; is_tab_stop = true;"
                            "        key = \"radio_button04\"; label = \"4. PENZD (comma delimited)\";"
                            "    }" ; radio_button 
                            "      : radio_button  { height = 1.0; width = 20; is_tab_stop = true;"
                            "        key = \"radio_button05\"; label = \"5. PENZD (tab delimited)\";"
                            "    }" ; radio_button 
                            "      : radio_button { height = 1.0; width = 20; is_tab_stop = true;"
                            "        key = \"radio_button06\"; label = \"6. PENZD (white-space delimited)\";"
                            "    }" ; radio_button 
                            "    : row { width = 20;"
                            "      : button { key = \"OK\"; label = \"OK\"; is_default = true;"
                            "                 is_cancel = true; fixed_width = true; width = 10; }" 
                            "    }" ; end row
                            "  }" ; end dialog
                          ) ;end list
              (write-line str des)
            ) ; end foreach
            (setq des (close des)
                 dch (load_dialog dcl)
            ) ; end setq
            (&amp;lt;= dch 0)
          )
          (princ "\nUnable to load DCL file.")
        )
        (   (not (new_dialog "pointsin" dch))
            (princ "\nUnable to display 'pointsin' dialog.")
        )
        ( t
          (set_tile "dcl" "Select file")
		(setq FILEFORMAT1)
          (action_tile "radio_button01" "(setq FILEFORMAT 1))")
          (action_tile "radio_button02" "(setq FILEFORMAT 2))")
          (action_tile "radio_button03" "(setq FILEFORMAT 3))")
          (action_tile "radio_button04" "(setq FILEFORMAT 4))")
          (action_tile "radio_button05" "(setq FILEFORMAT 5))")
          (action_tile "radio_button06" "(setq FILEFORMAT 6))")
          (action_tile "OK" "(progn (done_dialog 1) FILEFORMAT)")
          (start_dialog)
        )
      ) ; end cond
      (*error* nil)
    (princ)
) ;_  end defun&lt;/LI-CODE&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;2) Is to add the progress bar in the code, bacause some times the files are big ,have a lot of coordinates and I want to know that the code working and how match time need to finish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I upload again the working&amp;nbsp; poinsin.lsp&amp;nbsp; without any changes , the *.dwg file and a coodrinate file for option 4 with P,E,N,Z,D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is all the updates I need to do in this code.&lt;/P&gt;&lt;P&gt;Can anyone help me?&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;</description>
      <pubDate>Mon, 22 Apr 2024 07:42:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724352#M15057</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-22T07:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724663#M15058</link>
      <description>&lt;P&gt;I dont think you need a progress bar I just read 400 points and it was instant.&amp;nbsp;&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;LI-CODE lang="general"&gt;; Import csv or space or tab delimeted file PENZD
; By AlanH April 2024

(defun c:mhy3sximport ( / csv-&amp;gt;lst del fo fname but blk lst oldsnap curspace)

; thanks to lee-mac for this defun
(defun csv-&amp;gt;lst ( str / pos )
(if (setq pos (vl-string-position del str))
    (cons (substr str 1 pos) (csv-&amp;gt;lst (substr str (+ pos 2))))
    (list str)
    )
)
(setq oldsnap (getvar 'osmode))
(setvar 'osmode 0)

(setq fname (getfiled "CSV FILES" "SETOUT" "CSV" 16))
(setq fo (open fname "R"))

(setq lst '())

(if (not AH:Butts)(load "Multi radio buttons.lsp")) 			; loads the program if not loaded already
(setq ans (ah:butts 1 "V"   '("Please choose " "Comma ," "Semicolon ;" "Space " "Tab" ))) 	; ans holds the button picked value as a string

(cond 
  ((= but 1)(setq del 44))
  ((= but 2)(setq del 59))
  ((= but 3)(setq del 32))
  ((= but 4)(setq del 9))
)

(while (setq nline (read-line fo))
  (setq lst (cons (csv-&amp;gt;lst nline) lst))
)
(close fo)

(if (tblsearch "Block" "point")
(princ)
(progn
(setvar 'atreq 0)
(command "-insert" "c:\\myblock\\point.dwg" "0,0" 1 1 0)
(command "erase" (entlast) "")
)
)

(setq curspace (vlax-get-property
    (vla-get-activedocument (vlax-get-acad-object))
    (if (= 1 (getvar 'cvport)) 'paperspace 'modelspace)
    )
)

(foreach cogo lst
  (setq 
   ptnum (nth 0 cogo)
   pt (list (atof (nth 1 cogo))(atof (nth 2 cogo)))
   z (nth 3 cogo)
   desc (nth 4 cogo)
  )
  
  (vla-insertblock curspace (vlax-3D-point pt) "POINT" 1 1 1 0)
  (setq blk (vlax-ename-&amp;gt;vla-object (entlast)))
  (setq atts (vlax-invoke blk 'Getattributes))
  (vlax-put (nth 0 atts) 'textstring desc)
  (vlax-put (nth 1 atts) 'textstring ptnum)
  (vlax-put (nth 2 atts) 'textstring z)
)

(setvar 'osmode oldsnap)

(princ)
)
(c:mhy3sximport)&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know you have Multi radio buttons.lsp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dummied up excel -&amp;gt; csv&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1713781007051.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1352869i305716981C013CF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1713781007051.png" alt="SeaHaven_0-1713781007051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Use this dwg as it has the block "PDE" it must exist its made up of your 3 attdef's.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 00:14:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724663#M15058</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-29T00:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724946#M15059</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3520615"&gt;@mhy3sx&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;Hi CADaSchtroumpf, I try your code but ask for a lot of settings and at the end not insert anything. I will stay with my code.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My code aims to be as versatile as possible.&lt;BR /&gt;It allows you to order the columns of the read file to assign the right data in the drawing.&lt;BR /&gt;Here is the procedure with your example of text file as well as the result in image, nothing very complicated...&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;Commande: READFILE2BLK&lt;BR /&gt;1,288175.214,4219902.655,28.397,description&lt;BR /&gt;Separator [SPace/Comma/SEmicolon/Tabulation]? &amp;lt;SEmicolon&amp;gt;: &lt;FONT color="#993300"&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;1 288175.214 4219902.655 28.397 description&lt;BR /&gt;This 1st line is it a header line which can constitute the attribute labels [Yes/No]? &amp;lt;No&amp;gt;:&lt;/P&gt;&lt;P&gt;Element 1 is [Data/Xlocation/Ylocation/Zlocation/Ignore]?: &lt;FONT color="#993300"&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Element 288175.214 is [Data/Xlocation/Ylocation/Zlocation/Ignore]?:&lt;FONT color="#993300"&gt;&lt;STRONG&gt; X&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Element 4219902.655 is [Data/Ylocation/Zlocation/Ignore]?: &lt;FONT color="#993300"&gt;&lt;STRONG&gt;Y&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Element 28.397 is [Data/Zlocation/Ignore]?: &lt;FONT color="#993300"&gt;&lt;STRONG&gt;Z&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Element description is [Data/Ignore]?: &lt;FONT color="#993300"&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Block scale? &amp;lt;1&amp;gt;: &lt;FONT color="#993300"&gt;&lt;STRONG&gt;0.25&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="readFile2BLK.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1352924i66B5E2F72274563A/image-size/large?v=v2&amp;amp;px=999" role="button" title="readFile2BLK.png" alt="readFile2BLK.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 12:36:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12724946#M15059</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2024-04-22T12:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12725591#M15060</link>
      <description>&lt;P&gt;Dont try to change the lisp code .I want to use pointsin.lsp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I delete my radio button code and replace the code with Multi radio buttons.lsp but I get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;Trapped error: invalid argument type: listp: 3&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(DEFUN PI:GETFILEFORMAT (/)

(if (not AH:Butts)(load "Multi radio buttons.lsp")) ; loads the program if not loaded already
(setq ans (atoi (ah:butts 1 "V"   '("Please choose " "2. PΥΧZD  tab" "3. PΥΧZD space" "4. PΧΥZD comma " "5. PΧΥZD tab" "6. PΧΥZD space)")))) 	; ans holds the button picked value as a string

(cond 
  ((= but 1)(setq fileformat 1))
  ((= but 2)(setq fileformat 2))
  ((= but 3)(setq fileformat 3))
  ((= but 4)(setq fileformat 4))
  ((= but 5)(setq fileformat 5))
  ((= but 6)(setq fileformat 6)) 
)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any help me to update pointsin.lsp?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 16:56:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12725591#M15060</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-22T16:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12726329#M15061</link>
      <description>&lt;P&gt;Did you run my code ? Works fine for me was going to add as part of dcl what is file type CSV TXT PRS XYZ.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 00:07:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12726329#M15061</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-23T00:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Bar in lisp code</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12726793#M15062</link>
      <description>&lt;P&gt;Hi Sea-Haven, I&amp;nbsp; test your code but a lot of things are missing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I want to insert 3d points exept block points like pointsin.lsp&lt;/P&gt;&lt;P&gt;2)The file with coordinates have 8 decimal places for X,Y and 3 for Z and your code insert 3 to all&lt;/P&gt;&lt;P&gt;3)The point sin code call the block from a path "c:\\myblock\\point.dwg"&lt;/P&gt;&lt;P&gt;4) Perhaps if not use pointsin code not need radio buttons , just convert the code to support any type of extension file ,but only comma for PENZD something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq fname (getfiled "Select file" "" "" 0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) And I change this in ths code to work with my block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(foreach cogo lst&lt;BR /&gt;(setq&lt;BR /&gt;POINT (nth 0 cogo)&lt;BR /&gt;pt (list (atof (nth 1 cogo))(atof (nth 2 cogo)))&lt;BR /&gt;ELEV (nth 3 cogo)&lt;BR /&gt;DESC (nth 4 cogo)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;(vla-insertblock curspace (vlax-3D-point pt) "point" 1 1 1 0)&lt;BR /&gt;(setq blk (vlax-ename-&amp;gt;vla-object (entlast)))&lt;BR /&gt;(setq atts (vlax-invoke blk 'Getattributes))&lt;BR /&gt;(vlax-put (nth 0 atts) 'textstring POINT)&lt;BR /&gt;(vlax-put (nth 1 atts) 'textstring ELEV)&lt;BR /&gt;(vlax-put (nth 2 atts) 'textstring DESC)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a first look all this missing for the code. `&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 06:37:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/progress-bar-in-lisp-code/m-p/12726793#M15062</guid>
      <dc:creator>mhy3sx</dc:creator>
      <dc:date>2024-04-23T06:37:28Z</dc:date>
    </item>
  </channel>
</rss>

