<?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: LIST OF DRAWINGS FROM FOLDER in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8341327#M98063</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Great. Well working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested it to list out for&amp;nbsp;specific extension of files like pdf's, xls, dwg's&amp;nbsp;or dxf's. Can I use it for specific extensions only?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Advanced Thanks&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes &amp;amp; No.&lt;/P&gt;&lt;P&gt;Yes, you can only define one wildcard. So you can't filter for 2 or 3 different extensions at ones.&lt;/P&gt;&lt;P&gt;No, you can use any wildcard formatted filter. (examples: *.txt : *.* : *.pdf : MyProject-drw????A.dwg etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;It will list all files, matching the filter. so *.* gets you a list of all files ( and/or the subdir names) there.&lt;/P&gt;&lt;P&gt;No matter what kind of files it may be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2018 18:16:10 GMT</pubDate>
    <dc:creator>roland.r71</dc:creator>
    <dc:date>2018-10-17T18:16:10Z</dc:date>
    <item>
      <title>LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8339937#M98047</link>
      <description>&lt;P&gt;Dear All:&lt;/P&gt;&lt;P&gt;I am looking for a lisp to create a table in Auto CAD with List of Drawings, by taking the data (list of all files) from folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:10:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8339937#M98047</guid>
      <dc:creator>SAFizzy</dc:creator>
      <dc:date>2018-10-17T09:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8339955#M98048</link>
      <description>&lt;P&gt;Just 1 folder, no subdirectories?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;If so: &lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-AutoLISP/files/GUID-C28C0CB0-FBBE-4AA8-BAC4-2FF222772514-htm.html" target="_blank"&gt;vl-directory-files&lt;/A&gt; will get you that list, like:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;(vl-directory-files &lt;SPAN class="hljs-string"&gt;"e:/acadwin"&lt;/SPAN&gt; "*.dwg" 1)&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will list all drawings inside given path. (using given filter (*.dwg)&lt;/P&gt;&lt;P&gt;The 1 stands for "filenames only".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do have subdirs, it becomes a bit more complicated.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:24:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8339955#M98048</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-10-17T09:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8339959#M98049</link>
      <description>&lt;P&gt;yes just 1 folder&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:18:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8339959#M98049</guid>
      <dc:creator>SAFizzy</dc:creator>
      <dc:date>2018-10-17T09:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8339984#M98050</link>
      <description>&lt;P&gt;sorry,&lt;/P&gt;&lt;P&gt;i didn't get you, can you explain what to do?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:28:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8339984#M98050</guid>
      <dc:creator>SAFizzy</dc:creator>
      <dc:date>2018-10-17T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340123#M98051</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will ask you to chose the folder......(It will return the files of the folder only not the folder tree....)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then ask you to chose the "mtext" location where to insert the list of files......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can take the list &amp;amp; put those value in your table........(Because your table format is unknown...)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:GET_FILES ( / sh folder folderobject result text)&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(command "cmdecho" 0)&lt;BR /&gt;(setq sh (vla-getInterfaceObject (vlax-get-acad-object) "Shell.Application" ))&lt;BR /&gt;(setq folder (vlax-invoke-method sh 'BrowseForFolder 0 "" 0 ))&lt;BR /&gt;(vlax-release-object sh)&lt;BR /&gt;(setq folderobject (vlax-get-property folder 'Self))&lt;BR /&gt;(setq result (vlax-get-property FolderObject 'Path))&lt;BR /&gt;(setq Files_Folder (vl-directory-files result "*.dwg"))&lt;BR /&gt;(setq text "")&lt;BR /&gt;(if (/= (length Files_Folder) 0)&lt;BR /&gt;(repeat (setq N (length Files_Folder))&lt;BR /&gt; (setq e (nth (setq N (- N 1)) Files_Folder))&lt;BR /&gt; (setq text (strcat text e "\\P"))&lt;BR /&gt;)&lt;BR /&gt;(princ "\nDoes not containing any *.DWG File.")&lt;BR /&gt;) &lt;BR /&gt;(if (/= (length Files_Folder) 0)&lt;BR /&gt;(command "_.MTEXT" pause pause text "")&lt;BR /&gt;)&lt;BR /&gt;(command "cmdecho" 1)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 11:11:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340123#M98051</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-10-17T11:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340157#M98052</link>
      <description>&lt;P&gt;Excellent,&lt;/P&gt;&lt;P&gt;just small adjustments&lt;/P&gt;&lt;P&gt;1: remove extension&lt;/P&gt;&lt;P&gt;2: list not in proper ascending/descending order&lt;/P&gt;&lt;P&gt;3: add serial number&amp;nbsp;&lt;/P&gt;&lt;P&gt;4: table of two columns (serial number &amp;amp; file name) and rows according to list&lt;/P&gt;&lt;P&gt;5: scale of table to be confirmed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 11:12:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340157#M98052</guid>
      <dc:creator>SAFizzy</dc:creator>
      <dc:date>2018-10-17T11:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340238#M98053</link>
      <description>&lt;P&gt;what to do?&lt;/P&gt;&lt;P&gt;Create a list of filenames.&lt;/P&gt;&lt;P&gt;Create a table.&lt;/P&gt;&lt;P&gt;Populate the table using the list of filenames.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As this requires ActiveX methods (afaik), I can only help you a bit.&lt;/P&gt;&lt;P&gt;I can get the above done, but don't ask about 'customizing', as I know to little about ActiveX methods within acad to do so properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is howfar i can get, using the Knowledge Network and some code i found from&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/660967"&gt;@_Tharwat&lt;/a&gt; (albeit on another forum).&lt;/P&gt;&lt;PRE&gt;(setq  file_list (vl-directory-files "E:/lisp/testDWG" "*.dwg" 1)
      rows       (length file_list)
      cw         1
      acadObj    (vlax-get-acad-object)
      doc        (vla-get-ActiveDocument acadObj)
      pt         (vlax-3d-point 0 0 0)
      modelSpace (vla-get-ModelSpace doc)
)
(foreach file file_list
   (setq ln (strlen file))
   (if (&amp;gt; ln cw)(setq cw ln))
)
(setq myTable (vla-addtable modelSpace pt rows 1 1 50)
      i       0
      hgt     (if (zerop (cdr (assoc 40 (setq e (entget (tblobjname "STYLE" (getvar 'textstyle)))))))
                 (cdr (assoc 42 e))
                 (cdr (assoc 40 e))
              )
 )
(vla-setcolumnwidth myTable 0 (* hgt cw))
(while (&amp;lt; i (length file_list))
   (vla-settext myTable i 0 (nth i file_list))
   (setq i (1+ i))
)&lt;/PRE&gt;&lt;P&gt;However, the text size isn't coming from the textstyle, but some kind of table layout.&lt;/P&gt;&lt;P&gt;as the first line is 6 and the rest is 4.5, but the textstyle sayz: 2.5&lt;/P&gt;&lt;P&gt;So i don't have a clue yet how to set those correctly. (if possible)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 11:50:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340238#M98053</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-10-17T11:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340299#M98054</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6615168"&gt;@SAFizzy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Excellent,&lt;/P&gt;&lt;P&gt;just small adjustments&lt;/P&gt;&lt;P&gt;1: remove extension&lt;/P&gt;&lt;P&gt;2: list not in proper ascending/descending order&lt;/P&gt;&lt;P&gt;3: add serial number&amp;nbsp;&lt;/P&gt;&lt;P&gt;4: table of two columns (serial number &amp;amp; file name) and rows according to list&lt;/P&gt;&lt;P&gt;5: scale of table to be confirmed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;1. Learn about &lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-AutoLISP/files/GUID-8543549B-F0D7-43CD-87A3-F6B827FF0B88-htm.html" target="_blank"&gt;string handling functions&lt;/A&gt;. (hint: substr can be usefull here)&lt;/P&gt;&lt;P&gt;2. Learn about &lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-AutoLISP/files/GUID-00A75AFB-5708-4D0C-B18C-F74DDC4D65FA-htm.html" target="_blank"&gt;list manipulation functions&lt;/A&gt;. (hint: acad_strlsort will do)&lt;/P&gt;&lt;P&gt;3. Where did that serial just suddenly come from?: Be complete in requests.&lt;/P&gt;&lt;P&gt;4. Look up the table command &amp;amp; learn how to set column numbers.&lt;/P&gt;&lt;P&gt;5. What scale?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep in mind:&lt;/P&gt;&lt;P&gt;We are here to help you do your work &amp;amp; get things done. NOT to do all the work for you.&lt;/P&gt;&lt;P&gt;(unless you hire somebody) Your questions tell me you a: know nothing about lisp&amp;nbsp;&amp;amp; b: do not intend to ever learn. a) is not a problem. b) IS! (for me at least)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 12:13:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340299#M98054</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-10-17T12:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340341#M98055</link>
      <description>&lt;P&gt;sorry to say that, this is not the way to help others, i am new here in this forum &amp;amp; lisp.&lt;/P&gt;&lt;P&gt;I like the answer from &amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5869979"&gt;@dbhunia&lt;/a&gt;&amp;nbsp;this satisfied me alot&lt;/P&gt;&lt;P&gt;anyway thanks for your try to help me.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 12:28:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340341#M98055</guid>
      <dc:creator>SAFizzy</dc:creator>
      <dc:date>2018-10-17T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340386#M98056</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6615168"&gt;@SAFizzy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Excellent,&lt;/P&gt;&lt;P&gt;just small adjustments&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;1: remove extension&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2: list not in proper ascending/descending order&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;3: add serial number&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;4: table of two columns (serial number &amp;amp; file name) and rows according to list&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;5: scale of table to be confirmed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;..................&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this .......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will cover the highlighted points .........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rest you have to do your own..........All the rest points can be controlled from properties/Manually.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite busy&amp;nbsp; to do my things........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:GET_FILES ( / sh folder folderobject result)&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(command "cmdecho" 0)&lt;BR /&gt;(setq sh (vla-getInterfaceObject (vlax-get-acad-object) "Shell.Application" ))&lt;BR /&gt;(setq folder (vlax-invoke-method sh 'BrowseForFolder 0 "" 0 ))&lt;BR /&gt;(vlax-release-object sh)&lt;BR /&gt;(setq folderobject (vlax-get-property folder 'Self))&lt;BR /&gt;(setq result (vlax-get-property FolderObject 'Path))&lt;BR /&gt;(setq Files_Folder (vl-directory-files result "*.dwg"))&lt;BR /&gt;&lt;BR /&gt;(setq acadObj (vlax-get-acad-object))&lt;BR /&gt;(setq doc (vla-get-ActiveDocument acadObj))&lt;BR /&gt;(setq pt (vlax-3d-point 0 0 0))&lt;BR /&gt;(setq modelSpace (vla-get-ModelSpace doc))&lt;BR /&gt;(setq MyTable (vla-Addtable modelSpace pt (+ (length Files_Folder) 2) 2 10 100))&lt;BR /&gt;(vla-ZoomExtents acadObj)&lt;BR /&gt;(vla-setText MyTable 0 0 "Drawing File List")&lt;BR /&gt;(vla-setText MyTable 1 0 "Serial Number")&lt;BR /&gt;(vla-setText MyTable 1 1 "File Name")&lt;BR /&gt;&lt;BR /&gt;(if (/= (length Files_Folder) 0)&lt;BR /&gt;(repeat (setq N (length Files_Folder))&lt;BR /&gt; (setq e (nth (setq N (- N 1)) Files_Folder))&lt;BR /&gt; (setq fsl (strlen e))&lt;BR /&gt; (Setq Fsl (- fsl 4))&lt;BR /&gt; (setq Fname (substr e 1 fsl))&lt;BR /&gt; (vla-setText MyTable (+ N 2) 0 (+ N 1))&lt;BR /&gt; (vla-setText MyTable (+ N 2) 1 Fname)&lt;BR /&gt;)&lt;BR /&gt;(princ "\nDoes not containing any *.DWG File.")&lt;BR /&gt;) &lt;BR /&gt;&lt;BR /&gt;(command "cmdecho" 1)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:07:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340386#M98056</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-10-17T13:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340511#M98057</link>
      <description>&lt;P&gt;thanks bro,&lt;/P&gt;&lt;P&gt;there is something missing, as i am not getting table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its just disappear.&lt;/P&gt;&lt;P&gt;sorry to disturb you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340511#M98057</guid>
      <dc:creator>SAFizzy</dc:creator>
      <dc:date>2018-10-17T13:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340535#M98058</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know, ..... its tested in AutoCAD 2008........(before 29th October I can not check it in Higher version)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table is creating in "modelSpace".......... Are you in "modelSpace"?????&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:39:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340535#M98058</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-10-17T13:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340539#M98059</link>
      <description>&lt;P&gt;yes i am in model space,&lt;/P&gt;&lt;P&gt;but i am using AutoCAD 2015&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:30:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340539#M98059</guid>
      <dc:creator>SAFizzy</dc:creator>
      <dc:date>2018-10-17T13:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340837#M98060</link>
      <description>&lt;P&gt;It works for me. (Using ACAD2018)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:55:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8340837#M98060</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-10-17T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8341079#M98061</link>
      <description>&lt;P&gt;I have to agree with&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4682962"&gt;@roland.r71&lt;/a&gt;&amp;nbsp;&amp;nbsp;Some people treat this forum like a resource to place orders for free Lisp.&amp;nbsp; Then they have a habit of getting&amp;nbsp;demanding!&amp;nbsp; People are here to help each other learn lisp or work through issues they may be having with THEIR&amp;nbsp;code.&amp;nbsp; Not to write&amp;nbsp;entire subs&amp;nbsp;for people on demand.&amp;nbsp; I tend to only answer questions when the OP has posted code that they have at least started to write themselves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GOOD:&lt;BR /&gt;"I'm having trouble doing xxx with this code.&amp;nbsp; ::code::&amp;nbsp; What am I missing? How can I do this?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BAD:&lt;BR /&gt;"I want a lisp to blah blah blah....&amp;nbsp; Good.. now make it do this too.&amp;nbsp; Bye!"&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 16:23:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8341079#M98061</guid>
      <dc:creator>Shneuph</dc:creator>
      <dc:date>2018-10-17T16:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8341229#M98062</link>
      <description>&lt;P&gt;Great. Well working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested it to list out for&amp;nbsp;specific extension of files like pdf's, xls, dwg's&amp;nbsp;or dxf's. Can I use it for specific extensions only?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Advanced Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 17:28:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8341229#M98062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-17T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8341327#M98063</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Great. Well working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested it to list out for&amp;nbsp;specific extension of files like pdf's, xls, dwg's&amp;nbsp;or dxf's. Can I use it for specific extensions only?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Advanced Thanks&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes &amp;amp; No.&lt;/P&gt;&lt;P&gt;Yes, you can only define one wildcard. So you can't filter for 2 or 3 different extensions at ones.&lt;/P&gt;&lt;P&gt;No, you can use any wildcard formatted filter. (examples: *.txt : *.* : *.pdf : MyProject-drw????A.dwg etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;It will list all files, matching the filter. so *.* gets you a list of all files ( and/or the subdir names) there.&lt;/P&gt;&lt;P&gt;No matter what kind of files it may be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 18:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8341327#M98063</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-10-17T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8382160#M98064</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First Thing to do,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table is placing at "0,0,0" .............&amp;nbsp; Check once at that location......&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 06:04:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8382160#M98064</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-11-06T06:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8382186#M98065</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5869979"&gt;@dbhunia&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Yes i got what i am looking for, attached are two images showing list of drawings in folder and table created by lisp. &amp;nbsp;the only problem in this table is that, &amp;nbsp;It is too small and not in ascending order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drawings in folder.png" style="width: 610px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/566019iD3261E109FAA4270/image-size/large?v=v2&amp;amp;px=999" role="button" title="drawings in folder.png" alt="drawings in folder.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table created by lisp.png" style="width: 748px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/566020i992EE6384108F8E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="table created by lisp.png" alt="table created by lisp.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 06:24:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8382186#M98065</guid>
      <dc:creator>SAFizzy</dc:creator>
      <dc:date>2018-11-06T06:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: LIST OF DRAWINGS FROM FOLDER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8382215#M98066</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6615168"&gt;@SAFizzy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5869979"&gt;@dbhunia&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Yes i got what i am looking for, attached are two images showing list of drawings in folder and table created by lisp. &amp;nbsp;the only problem in this table is that, &amp;nbsp;&lt;FONT color="#0000FF"&gt;It is too small and not in ascending order&lt;/FONT&gt;. ................................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:GET_FILES ( / sh folder folderobject result)
(vl-load-com)
(command "cmdecho" 0)
(setq sh (vla-getInterfaceObject (vlax-get-acad-object) "Shell.Application" ))
(setq folder (vlax-invoke-method sh 'BrowseForFolder 0 "" 0 ))
&lt;FONT color="#0000FF"&gt;(setq MTH (getreal "\nInput the Text Height: "))
(setq WT (getreal "\nWidth of the table: "))&lt;/FONT&gt;
(vlax-release-object sh)
(setq folderobject (vlax-get-property folder 'Self))
(setq result (vlax-get-property FolderObject 'Path))
(setq Files_Folder (vl-directory-files result "*.dwg"))

(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq pt (vlax-3d-point 0 0 0))
(setq modelSpace (vla-get-ModelSpace doc))
&lt;FONT color="#0000FF"&gt;(setq MyTable (vla-Addtable modelSpace pt (+ (length Files_Folder) 2) 2 (* MTH 1.3) WT))&lt;/FONT&gt;
(vla-ZoomExtents acadObj)
(vla-setText MyTable 0 0 "Drawing File List")
&lt;FONT color="#0000FF"&gt;(vla-setcelltextheight MyTable 0 0 MTH)&lt;/FONT&gt;
(vla-setText MyTable 1 0 "Serial Number")
(vla-setText MyTable 1 1 "File Name")&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;(acad_strlsort Files_Folder)&lt;/FONT&gt;

(if (/= (length Files_Folder) 0)
(repeat (setq N (length Files_Folder))
 (setq e (nth (setq N (- N 1)) Files_Folder))
 (setq fsl (strlen e))
 (Setq Fsl (- fsl 4))
 (setq Fname (substr e 1 fsl))
 (vla-setText MyTable (+ N 2) 0 (+ N 1))
 (vla-setText MyTable (+ N 2) 1 Fname)
)
(princ "\nDoes not containing any *.DWG File.")
) 

&lt;FONT color="#0000FF"&gt;(setq RN 0)
(if (/= (length Files_Folder) 0)
(repeat (setq N (+ (length Files_Folder) 1))
  (setq RN (+ RN 1))
  (vla-setcelltextheight MyTable RN 0 MTH)
  (vla-setcelltextheight MyTable RN 1 MTH)
)
)&lt;/FONT&gt;
(command "cmdecho" 1)
(princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tested this in AutoCAD 2017 &amp;amp; 2018.......its ok.......see the attached image....&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="1.PNG" style="width: 603px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/566037iAE1117FF5D75AB74/image-dimensions/603x381?v=v2" width="603" height="381" role="button" title="1.PNG" alt="1.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="2.PNG" style="width: 602px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/566038iC00ADDFD0DF79743/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Tue, 06 Nov 2018 07:10:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-drawings-from-folder/m-p/8382215#M98066</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-11-06T07:10:48Z</dc:date>
    </item>
  </channel>
</rss>

