<?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 Do whatever I want to as many model files as I choose??? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Do-whatever-I-want-to-as-many-model-files-as-I-choose/m-p/377917#M808</link>
    <description>&lt;P&gt;Hey fellow developers,&lt;BR /&gt;&lt;BR /&gt;Is it possible to execute the same set of commands on a preselected group of model files?&amp;nbsp; These can be either Teamwork files or stand-alone .pln files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have successfully written a Windows desktop app to do this for AutoCAD.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1682533423174.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/36540i637CFF7F9484D32D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1682533423174.png" alt="MudratDetector_0-1682533423174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That workflow is:&lt;BR /&gt;- - Launch the app dialog&lt;/P&gt;
&lt;P&gt;- - Press button to "Select .dwg file(s)..." from a 'Browse for File' dialog.&amp;nbsp; Select files.&lt;BR /&gt;- - Target files are displayed in the list.&lt;/P&gt;
&lt;P&gt;- - Select option with checkbox.&lt;BR /&gt;- -&amp;nbsp;Press button to "Run script"&lt;BR /&gt;- - Batch file is written to launch AutoCAD with each drawing from the list as an argument to the acad.exe file.&amp;nbsp; An argument is also&amp;nbsp; provided to run the same predetermined AutoCAD .scr file [script file] at drawing open.&amp;nbsp; 5 drawings in the list are 5 lines in the batch file.&lt;/P&gt;
&lt;P&gt;- - The batch file is run and each line in the batch file launches AutoCAD, opens a .dwg file, runs the script file, saves the .dwg file, quits AutoCAD, next line runs, launches AutoCAD,...&lt;BR /&gt;&lt;BR /&gt;With this tool, I can batch process any number of .dwg files with any set of instructions with the push of a button [or two].&lt;BR /&gt;&lt;BR /&gt;For ArchiCAD, I have figured out half the battle.&amp;nbsp; I can do what I want with three separate 'Open' instances - - (1) launching ArchiCAD, (2) File &amp;gt; New to open our template as Untitled, and (3) opening a legit model file.&amp;nbsp; And, for now, do what I want is limited to displaying a dialog confirming the open condition.&amp;nbsp; Ultimately, I would like to cycle through all of the layouts.&amp;nbsp; Or cycle through all of whatever...&lt;BR /&gt;&lt;BR /&gt;I also know that there are some things that cannot run in the context of&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ACAPI_CallUndoableCommand()&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Has this batch processing been done before?&lt;BR /&gt;Can somebody point me in the right direction?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;chris&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 10:58:27 GMT</pubDate>
    <dc:creator>MudratDetector</dc:creator>
    <dc:date>2024-09-17T10:58:27Z</dc:date>
    <item>
      <title>Do whatever I want to as many model files as I choose???</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Do-whatever-I-want-to-as-many-model-files-as-I-choose/m-p/377917#M808</link>
      <description>&lt;P&gt;Hey fellow developers,&lt;BR /&gt;&lt;BR /&gt;Is it possible to execute the same set of commands on a preselected group of model files?&amp;nbsp; These can be either Teamwork files or stand-alone .pln files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have successfully written a Windows desktop app to do this for AutoCAD.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1682533423174.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/36540i637CFF7F9484D32D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1682533423174.png" alt="MudratDetector_0-1682533423174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That workflow is:&lt;BR /&gt;- - Launch the app dialog&lt;/P&gt;
&lt;P&gt;- - Press button to "Select .dwg file(s)..." from a 'Browse for File' dialog.&amp;nbsp; Select files.&lt;BR /&gt;- - Target files are displayed in the list.&lt;/P&gt;
&lt;P&gt;- - Select option with checkbox.&lt;BR /&gt;- -&amp;nbsp;Press button to "Run script"&lt;BR /&gt;- - Batch file is written to launch AutoCAD with each drawing from the list as an argument to the acad.exe file.&amp;nbsp; An argument is also&amp;nbsp; provided to run the same predetermined AutoCAD .scr file [script file] at drawing open.&amp;nbsp; 5 drawings in the list are 5 lines in the batch file.&lt;/P&gt;
&lt;P&gt;- - The batch file is run and each line in the batch file launches AutoCAD, opens a .dwg file, runs the script file, saves the .dwg file, quits AutoCAD, next line runs, launches AutoCAD,...&lt;BR /&gt;&lt;BR /&gt;With this tool, I can batch process any number of .dwg files with any set of instructions with the push of a button [or two].&lt;BR /&gt;&lt;BR /&gt;For ArchiCAD, I have figured out half the battle.&amp;nbsp; I can do what I want with three separate 'Open' instances - - (1) launching ArchiCAD, (2) File &amp;gt; New to open our template as Untitled, and (3) opening a legit model file.&amp;nbsp; And, for now, do what I want is limited to displaying a dialog confirming the open condition.&amp;nbsp; Ultimately, I would like to cycle through all of the layouts.&amp;nbsp; Or cycle through all of whatever...&lt;BR /&gt;&lt;BR /&gt;I also know that there are some things that cannot run in the context of&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ACAPI_CallUndoableCommand()&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Has this batch processing been done before?&lt;BR /&gt;Can somebody point me in the right direction?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;chris&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 10:58:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Do-whatever-I-want-to-as-many-model-files-as-I-choose/m-p/377917#M808</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-09-17T10:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Do whatever I want to as many model files as I choose???</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Do-whatever-I-want-to-as-many-model-files-as-I-choose/m-p/378610#M809</link>
      <description>&lt;P&gt;This is what I was looking for.&amp;nbsp; I remember this script being used in the debut of this technology and figured modification would get me where I wanted to be.&lt;BR /&gt;&lt;BR /&gt;Is there a version for AC24 still floating around?&lt;BR /&gt;===========================================================&lt;/P&gt;&lt;H2&gt;recurring_publish.py&lt;/H2&gt;&lt;H3&gt;Description&lt;/H3&gt;&lt;P&gt;The script can schedule recurring publishing.&lt;BR /&gt;The related Archicad project must be opened before executing the script, because the script retrieves the projectdata during the start-up of the script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://github.com/tlorantfy/archicad-python-scripts/blob/master/recurring_publish.py" target="_blank" rel="noopener"&gt;https://github.com/tlorantfy/archicad-python-scripts/blob/master/recurring_publish.py&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 18:28:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Do-whatever-I-want-to-as-many-model-files-as-I-choose/m-p/378610#M809</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2023-05-03T18:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Do whatever I want to as many model files as I choose???</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Do-whatever-I-want-to-as-many-model-files-as-I-choose/m-p/379785#M810</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/23128"&gt;@MudratDetector&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Is there a version for AC24 still floating around?&lt;BR /&gt;===========================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Python binding for the Archicad JSON command interface:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pypi.org/project/archicad/#history" target="_blank" rel="noopener"&gt;https://pypi.org/project/archicad/#history&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 20:22:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Do-whatever-I-want-to-as-many-model-files-as-I-choose/m-p/379785#M810</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2023-05-09T20:22:22Z</dc:date>
    </item>
  </channel>
</rss>

