<?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 Script for Reports in AutoCAD Electrical Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-electrical-forum/script-for-reports/m-p/8905453#M20190</link>
    <description>&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;Where can I get a documentation, explanation&amp;nbsp;or code snippet, how to add a script file to the Report generator&lt;/P&gt;&lt;P&gt;If I understoud that right, it's only possible for save to an oder file, and not inserting the table in the drawing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="SF.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/656809iB0DBC42233BCCDAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SF.PNG" alt="SF.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My Topics is:&lt;/P&gt;&lt;P&gt;Get an excel file where I have Cable Catalog number, and I need to have Total lenght per cable CatalogNumber&lt;/P&gt;&lt;P&gt;The lenght of each cable is in a RATING attribut&lt;/P&gt;&lt;P&gt;I hope this is possible with the Script, but the helpfile is not very useful.&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 06:39:22 GMT</pubDate>
    <dc:creator>FRFR1512</dc:creator>
    <dc:date>2019-07-12T06:39:22Z</dc:date>
    <item>
      <title>Script for Reports</title>
      <link>https://forums.autodesk.com/t5/autocad-electrical-forum/script-for-reports/m-p/8905453#M20190</link>
      <description>&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;Where can I get a documentation, explanation&amp;nbsp;or code snippet, how to add a script file to the Report generator&lt;/P&gt;&lt;P&gt;If I understoud that right, it's only possible for save to an oder file, and not inserting the table in the drawing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="SF.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/656809iB0DBC42233BCCDAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SF.PNG" alt="SF.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My Topics is:&lt;/P&gt;&lt;P&gt;Get an excel file where I have Cable Catalog number, and I need to have Total lenght per cable CatalogNumber&lt;/P&gt;&lt;P&gt;The lenght of each cable is in a RATING attribut&lt;/P&gt;&lt;P&gt;I hope this is possible with the Script, but the helpfile is not very useful.&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 06:39:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-electrical-forum/script-for-reports/m-p/8905453#M20190</guid>
      <dc:creator>FRFR1512</dc:creator>
      <dc:date>2019-07-12T06:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script for Reports</title>
      <link>https://forums.autodesk.com/t5/autocad-electrical-forum/script-for-reports/m-p/8905955#M20191</link>
      <description>&lt;P&gt;If you click "Run Script" and save the file you will get the dialog box below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 387px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/656916i5A5A99808C7688B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The file path to this "Print" script file is below.&lt;/P&gt;&lt;PRE&gt;C:\Users\%userprofile%\AppData\Roaming\Autodesk\AutoCAD Electrical 2018\R22.0\enu\Support\User\PRINT.SCR&lt;/PRE&gt;&lt;P&gt;Simply change the year and version to your system. This is what the file says.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;; Script file to call external ".bat" batch file or
; ".exe" program and pass the last written report file.
; syntax:  wd_scr_startapp "&amp;lt;program&amp;gt;"
;   where &amp;lt;program&amp;gt; is the system level batch ".bat" file
;   or external program ".exe" to run. The name of the 
;   last written report is passed with the &amp;lt;program&amp;gt; name
;   as a command line parameter. For example, if the called
;   program is "wdprint.bat", then the last written report's
;   file name is passed as a command line parameter and is
;   accessible within the ".bat" program as "%1".
;
; If full path for program is given, enter it normally 
; (i.e. single backslashes). If the full path is not given,
; WD will search for the target program in the normal WD 
; search paths and ACAD paths. If not found, it also looks
; in \Program Files\Accessories, \Program Files\Windows NT\
; Accessories, \Program Files\Microsoft Office\Office\ and 
; a few other possibilites for the target program.
; 
wd_scr_startapp "wdprint.bat"
; ^C to trigger a bogus command and force the end of the 
; script with no possiblity of repeating the above command
^C&lt;/PRE&gt;&lt;P&gt;This will require you to create a batch file or other program to process the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think this is what you are looking for. Your best option would be the "User Post" Button on the Report Generator dialog box. The files for these are located here:&lt;/P&gt;&lt;PRE&gt;C:\program files\autodesk\autocad 2018\acade\support\en-us\shared\&lt;/PRE&gt;&lt;P&gt;Again, change the year to your system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside that folder are lisp files and dialog definition files. You can change both to accommodate more than three user post operations. Otherwise, you would only modify the lisp file. The lisp file has documentation on what variables hold the report data. You can use VLIDE and load the lisp file and read the data in the variable in real time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 11:30:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-electrical-forum/script-for-reports/m-p/8905955#M20191</guid>
      <dc:creator>jtoverka</dc:creator>
      <dc:date>2019-07-12T11:30:46Z</dc:date>
    </item>
  </channel>
</rss>

