<?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: Total Dwg Files / Total Sheet Count in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6861366#M123940</link>
    <description>In what manner are you using the DIESEL?&lt;BR /&gt;A formula/field?&lt;BR /&gt;UI display (MODEMACRO or pull-down)?&lt;BR /&gt;&lt;BR /&gt;Take Ranjit's LISP solution and inject it into&lt;BR /&gt;a USERI#. There are 5 available and DIESEL&lt;BR /&gt;can see these.&lt;BR /&gt;&lt;BR /&gt;Of course there is the issue of initializing this.&lt;BR /&gt;If not inside S::STARTUP, a command reactor&lt;BR /&gt;might work.&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;</description>
    <pubDate>Tue, 07 Feb 2017 23:30:05 GMT</pubDate>
    <dc:creator>scot-65</dc:creator>
    <dc:date>2017-02-07T23:30:05Z</dc:date>
    <item>
      <title>Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6860668#M123936</link>
      <description>&lt;P&gt;As far as I am aware, there is no solution to use DIESEL to count the number of dwg files in a directory correct? I just wanted to confirm this before I continue endlessly researching this topic as I have done thus far. What about in VB? I'm familiar with DIESEL, but not VB. The only reason I don't want to use sheet set manager is because I'm not familiar with it and neither is anyone I work with. It won't be very popular and most would break it I'm sure or refuse to use it. I am hoping that someone somewhere has a DIESEL program solution to display Sheet 1/XX in attempting to figure out what XX is (total sheet count) in the file directory where the dwg files reside. Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 18:56:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6860668#M123936</guid>
      <dc:creator>paulmartin_</dc:creator>
      <dc:date>2017-02-07T18:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6860713#M123937</link>
      <description>&lt;P&gt;Sheetsetmanager has lot more use then just counting the number of drawings. Plus, it can contain drawings from more than one directory. You should give it a try.&lt;/P&gt;
&lt;P&gt;Maybe some one has a diesel solution. Meanwhile, this should give you total number of files using LISP&lt;/P&gt;
&lt;PRE&gt;(length (vl-directory-files  (getvar 'dwgprefix) "*.dwg"))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 19:18:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6860713#M123937</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-02-07T19:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6860766#M123938</link>
      <description>&lt;P&gt;I'd love to give sheetsetmanager a try, but I don't think I will be able to implement it across my department in creating drawings. I seem to be far more advanced at AutoCAD then the rest. All I'm trying to do is automate the title block at this point in time. We use model tabs for every drawing here also, which isn't supported in SSM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the Lisp code though! My company uses AutoCADLT though with one license of the full AutoCAD. My question is, if I create a block (titleblock) that runs a lisp code each time it opens or is inserted (don't know how I would do that yet, but read it is possible) would it not work in AutoCADLT? I would obviously create and implement the lsp code in the full AutoCAD &amp;nbsp;version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping that a DIESEL option is available for this, but it really doesn't seem so as I've searched high and low for an answer. If I had a DIESEL answer then I would be able to implement it in AutoCADLT and also wouldn't matter that we use model tabs for our drawings.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 19:35:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6860766#M123938</guid>
      <dc:creator>paulmartin_</dc:creator>
      <dc:date>2017-02-07T19:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6861107#M123939</link>
      <description>&lt;P&gt;Seems like the first thing you should do is bring everyone into the 2000s and start using paperspace. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With LT, there isn't going to be an automated solution. The only real option I can think of is creating an xref containing text with the total number of sheets (updated manually) and inserting it into each file. You could also do this with a text file and RTEXT (if that works in LT). These are clunky solutions, but the only viable option.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 21:33:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6861107#M123939</guid>
      <dc:creator>alanjt_</dc:creator>
      <dc:date>2017-02-07T21:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6861366#M123940</link>
      <description>In what manner are you using the DIESEL?&lt;BR /&gt;A formula/field?&lt;BR /&gt;UI display (MODEMACRO or pull-down)?&lt;BR /&gt;&lt;BR /&gt;Take Ranjit's LISP solution and inject it into&lt;BR /&gt;a USERI#. There are 5 available and DIESEL&lt;BR /&gt;can see these.&lt;BR /&gt;&lt;BR /&gt;Of course there is the issue of initializing this.&lt;BR /&gt;If not inside S::STARTUP, a command reactor&lt;BR /&gt;might work.&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Feb 2017 23:30:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6861366#M123940</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2017-02-07T23:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6863141#M123941</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/43171"&gt;@scot-65&lt;/a&gt; wrote:&lt;BR /&gt;In what manner are you using the DIESEL?&lt;BR /&gt;A formula/field?&lt;BR /&gt;UI display (MODEMACRO or pull-down)?&lt;BR /&gt;&lt;BR /&gt;Take Ranjit's LISP solution and inject it into&lt;BR /&gt;a USERI#. There are 5 available and DIESEL&lt;BR /&gt;can see these.&lt;BR /&gt;&lt;BR /&gt;Of course there is the issue of initializing this.&lt;BR /&gt;If not inside S::STARTUP, a command reactor&lt;BR /&gt;might work.&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;LT means no access to LISP.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 15:54:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6863141#M123941</guid>
      <dc:creator>alanjt_</dc:creator>
      <dc:date>2017-02-08T15:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6864305#M123942</link>
      <description>&lt;P&gt;If you name your drawing files consistently, you could always include the sheet number as a part of the file name and use diesel to pull out just those digits. For example the first three&amp;nbsp;drawings might look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PXXXX-01-G001.dwg&lt;/P&gt;&lt;P&gt;PXXXX-02-G002.dwg&lt;/P&gt;&lt;P&gt;PXXXX-03-C001.dwg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you could just pull out the 7th and 8th characters of the filename. I don't use diesel often enough to tell you exactly how to pull out those digits, but I know it's possible. It's not the fully automated solution you are looking for, but it's an option.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:50:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6864305#M123942</guid>
      <dc:creator>steve_carson</dc:creator>
      <dc:date>2017-02-08T21:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6867636#M123943</link>
      <description>&lt;P&gt;From the AutoCAD 2009 Customization Guide:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 
Catalog of DIESEL Functions 
 
 
Status retrieval, computation, and display are performed&lt;BR /&gt;by DIESEL functions. All functions have a limit of 10&lt;BR /&gt;parameters, including the function name itself. If this&lt;BR /&gt;limit is exceeded, you get a DIESEL error message.

Topics in this section
+ (addition)
- (subtraction)
* (multiplication)
/ (division)
= (equal to)
&amp;lt; (less than)
&amp;gt; (greater than)
!= (not equal to)
&amp;lt;= (less than or equal to)
&amp;gt;= (greater than or equal to)
and 
angtos 
edtime
eq
eval
fix
getenv
getvar
if
index 
nth
or
rtos
strlen
substr
upper
xor
 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, DIESEL is quite limited in function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(apologies as I did not see "LT" in your post).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 23:25:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6867636#M123943</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2017-02-09T23:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Total Dwg Files / Total Sheet Count</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6870070#M123944</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all your replies. I am using DIESEL in a field currently to display the sheet number since our electrical drawings have standard filenames. Obviously lisp is out of the question along with DIESEL's limited functionality.&amp;nbsp;I knew the outcome of this question, but wanted to see if there was something I was missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I will explore sheet sets and begin to transition into layout/paper space to hopefully make drawing creation easier in the future. With electrical drawings and schematics it is more of a duplication rather than a creation, which is why I believe my company, which I am brand new to, has gotten away with using model space in the past. I am hopeful it won't take me long to get acquainted with sheet set manager to be able to easily create, customize and standardize drawings going forward. There are posts online that say creating good templates should be a starting point, but I would welcome any advice or web links in the way of making drawing packages and drawings easier in the future. Wish me luck and thanks again for all your assistance so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a final side note, our drawings all need to end up in the same file location at the end and are relatively small sets with approximately 16 sheets if that makes a difference in how you guys suggest creating a sheet set. &amp;nbsp;&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;</description>
      <pubDate>Fri, 10 Feb 2017 19:58:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/total-dwg-files-total-sheet-count/m-p/6870070#M123944</guid>
      <dc:creator>paulmartin_</dc:creator>
      <dc:date>2017-02-10T19:58:18Z</dc:date>
    </item>
  </channel>
</rss>

