<?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: Automation: Recurring execution of publishing in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268687#M32</link>
    <description>I see no reason why it could not. The reason that Tibor requires initial start of the program is that he picks up from the program itself - the exe location, file location ,program title and available publish sets. If you knew these things before hand-- which you should.- and filled them into the tkinter dialog, it could automatically start and schedule  a publish as it does do on repeated starts.</description>
    <pubDate>Fri, 21 May 2021 00:13:35 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2021-05-21T00:13:35Z</dc:date>
    <item>
      <title>Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268682#M27</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi fellow developers!&lt;BR /&gt;&lt;BR /&gt;I started 2 new hobby open source projects at github:
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://github.com/tlorantfy/archicad-python-scripts" target="_blank" rel="noopener"&gt;Python scripts for Archicad&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/tlorantfy/archicad-additional-json-commands" target="_blank" rel="noopener"&gt;Additional JSON/Python Commands Add-On for Archicad&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
The python scripts and the Add-On both works with Archicad 25 (build 2450) or later.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://github.com/tlorantfy/archicad-python-scripts" target="_blank" rel="noopener"&gt;Python scripts for Archicad&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Currently it contains one script, &lt;A href="https://github.com/tlorantfy/archicad-python-scripts/blob/master/recurring_publish.py" target="_blank" rel="noopener"&gt;recurring_publish.py&lt;/A&gt;.&lt;BR /&gt;The script can schedule recurring publishing.&lt;BR /&gt;Archicad will be shut down after each publishing and it will be restarted before each publishing, the project will be reloaded automatically. User can choose Publisher Sets to publish.&lt;BR /&gt;Works for Teamwork (BIMcloud) projects also. A receive command is executed before each publishing.&lt;BR /&gt;&lt;BR /&gt;Demo video: &lt;A href="https://ttprivatenew.s3.amazonaws.com/pulse/lorantfyt/attachments/16911630/archicad_recurring_publish_demo.mp4" target="_blank" rel="noopener"&gt;https://ttprivatenew.s3.amazonaws.com/pulse/lorantfyt/attachments/16911630/archicad_recurring_publish_demo.mp4&lt;/A&gt;&lt;BR /&gt;Short demo GIF:&lt;BR /&gt;&lt;IMG src="https://j.gifs.com/lRY80V.gif" border="0" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://github.com/tlorantfy/archicad-additional-json-commands" target="_blank" rel="noopener"&gt;Additional JSON/Python Commands Add-On for Archicad&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;This Add-On extends the JSON interface of Archicad by implementing new JSON commands.&lt;BR /&gt;These JSON commands are callable via Python.&lt;BR /&gt;The Add-On is required by the python scripts in &lt;A href="https://github.com/tlorantfy/archicad-python-scripts" target="_blank" rel="noopener"&gt;archicad-python-scripts github repo&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Currently implemented Commands
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Publish&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;GetProjectInfo&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;TeamworkReceive&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;GetArchicadLocation&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Quit&lt;/LI&gt;
&lt;/UL&gt;
All the contributions are welcome &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" border="0" /&gt; Feel free to copy or modify the code (MIT license), you can make pull requests &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" border="0" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:37:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268682#M27</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2021-09-14T07:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268683#M28</link>
      <description>Source Code will not compile - I tried vs 2017 tool set 141 and vs2019 tool set 142&lt;BR /&gt;
 on 2019 I get error among others of newOwned not defined. on 2017 I get general errors of GS namespace not defined. Windows 10 used cmaketext.txt in source&lt;BR /&gt;
&lt;BR /&gt;
A compile video would be helpful???&lt;BR /&gt;
&lt;BR /&gt;
EDIT: do we need the 25 SDK? -- When will that be released?</description>
      <pubDate>Thu, 20 May 2021 00:44:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268683#M28</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-05-20T00:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268684#M29</link>
      <description>&lt;BLOCKQUOTE&gt;poco2013 wrote:&lt;BR /&gt;do we need the 25 SDK? -- When will that be released?&lt;/BLOCKQUOTE&gt;

Thanks for the feedback, Poco!&lt;BR /&gt;
Yes, it requires the 25 SDK. The Béta 25 SDK is already available for those who are registered at the Béta Site, but it will go public soon.&lt;BR /&gt;
&lt;BR /&gt;
I will record a video, how to compile. Using Visual Studio Code it's easy, that handles CMake and the building if VS2019 toolset is installed.</description>
      <pubDate>Thu, 20 May 2021 08:26:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268684#M29</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2021-05-20T08:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268685#M30</link>
      <description>Thanks Tibor:&lt;BR /&gt;
&lt;BR /&gt;
i had a chance to look at the code for the new Python command feature and it looks very compact and straight forward to use-- as usual, excellent work. However, I have some concerns as to how this will function. For example, you use classes to define the Python interface commands which appear to have a standard set of functions defined.  There is no explanation as to how these classes are called, their order,or their internal functions.&lt;BR /&gt;
 The python code simply calls commands by a internal name returned from 'getname' but there is no direct call that i can see. I assume this is all done magically behind the scenes, but in what order and what are the needed parameters. if any.&lt;BR /&gt;
&lt;BR /&gt;
Since I do not have access to the 25 SDK beta, it is very confusing and,because of that, somewhat unusable without a explanation.&lt;BR /&gt;
&lt;BR /&gt;
Could I suggest a 'blog'(s) to explain the nuances, perhaps on the developer's site? You program does work well as per your video but I am unsure as how to apply to other add-ons without knowing the order and functions of the classes and their internal methods. The explanations within the SDK - to come- can be a little cryptic.&lt;BR /&gt;
&lt;BR /&gt;
BTW - i did encounter a exception if i aborted the process. Don't know why since I don't understand the process.The C++ part functions are mostly just from the SDK ,but how are they called from Python?&lt;BR /&gt;
&lt;BR /&gt;
Hoping for a Blog soon. Thanks again and looking forward to more of the same good work?</description>
      <pubDate>Thu, 20 May 2021 22:43:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268685#M30</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-05-20T22:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268686#M31</link>
      <description>Would be interesting feature, if ArchiCAD can publish drawings without starting UI - working on the background, as many programs can work via terminal only.</description>
      <pubDate>Thu, 20 May 2021 23:21:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268686#M31</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-20T23:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268687#M32</link>
      <description>I see no reason why it could not. The reason that Tibor requires initial start of the program is that he picks up from the program itself - the exe location, file location ,program title and available publish sets. If you knew these things before hand-- which you should.- and filled them into the tkinter dialog, it could automatically start and schedule  a publish as it does do on repeated starts.</description>
      <pubDate>Fri, 21 May 2021 00:13:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268687#M32</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-05-21T00:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268688#M33</link>
      <description>Okey, maybe say it different: does ArchiCAD have possibility to start and work without starting User Interface?&lt;BR /&gt;
If I open terminal and type command there:&lt;BR /&gt;
(this is just for example, there is no specific commands or language)&lt;BR /&gt;
&lt;BR /&gt;
-ArchiCAD -publish -/user/alex/projects/1304myproject/1304myproejct.PLN -/user/alex/projects/1304myproject/drawings  -publishing set name[drawngs issue]   etc...&lt;BR /&gt;
&lt;BR /&gt;
So I hit the return button and nothing really happens on the screen apart of notification in terminal about progress and when task is completed. Why it's important? because UI loading usually takes additional memory and for automated task absolutely not needed.</description>
      <pubDate>Fri, 21 May 2021 07:19:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268688#M33</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-21T07:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268689#M34</link>
      <description>&lt;BLOCKQUOTE&gt;Podolsky wrote:&lt;BR /&gt;
Okey, maybe say it different: does ArchiCAD have possibility to start and work without starting User Interface?&lt;BR /&gt;
memory and for automated task absolutely not needed.
&lt;/BLOCKQUOTE&gt;

No Archicad does not have this capability. But the Windows Task Scheduler does and I assume so does the MAC. Python has access to the Windows system through one of its many modules and therefore could schedule it outside of memory. The actual publishing and any new features can not be done by Python. And it appears to be the case in the future. You would still have to write a C++ addon to do the actual task once Archicad is activated. The Python program would just call the functions of the new C++ addon or, in effect, the new Json commands embedded within the new Addon.&lt;BR /&gt;
&lt;BR /&gt;
Tibor's program ,upon restart, activates Archicad through the operating system then communicates through Json to his Json Addon. You could schedule, through the task manager, either programmatically or manually a start of the Python program then, Archicad. We will, however, have to wait until the release of the 25 SDK for details. I believe that's a couple of months out?</description>
      <pubDate>Fri, 21 May 2021 10:36:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268689#M34</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-05-21T10:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268690#M35</link>
      <description>Headless Archicad would definitively be a dream of mine.&lt;BR /&gt;
Hopefully we can achieve this one day.</description>
      <pubDate>Fri, 21 May 2021 18:32:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268690#M35</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-05-21T18:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268691#M36</link>
      <description>Hi runxel,&lt;BR /&gt;
&lt;BR /&gt;
What is Headless ArchiCAD's mean?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 23 Jun 2021 23:48:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268691#M36</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-23T23:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268692#M37</link>
      <description>&lt;BLOCKQUOTE&gt;blackd3er77 wrote:&lt;BR /&gt;
What is Headless ArchiCAD's mean?
&lt;/BLOCKQUOTE&gt;

A so called "headless" program is an app, that is executed without a GUI, running in the background.&lt;BR /&gt;
Other apps can still interact with it, tho.&lt;BR /&gt;
&lt;BR /&gt;
A headless Archicad could be the spiritual successor of the ODBC driver, which was sacked in v20.</description>
      <pubDate>Thu, 24 Jun 2021 12:36:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/268692#M37</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-06-24T12:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/334900#M38</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is still working with Archicad 25 5005 for Mac? I can add scripts like "recurring_publish.py" ...&lt;BR /&gt;But how to install the&amp;nbsp;"Archicad-additional-json-commands.bundle" ? I copied it to the Graphisoft folder "Add-Ons", but Archicad didn´t find it automatically. When I add it manually in Archicad to the Addon-Manager, Archicad shows me the yellow warning symbol. Python 3.10 is installed. Thanks for help in advance.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/20371i283CEE16A16EB4B4/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Bildschirmfoto 2022-04-07 um 09.48.01.png" title="Bildschirmfoto 2022-04-07 um 09.48.01.png" /&gt;</description>
      <pubDate>Thu, 07 Apr 2022 07:49:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/334900#M38</guid>
      <dc:creator>MW1988</dc:creator>
      <dc:date>2022-04-07T07:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/355324#M39</link>
      <description>&lt;P&gt;The Additional JSON/Python Commands Add-On does not work in Archicad 26 Build 3010. Is there anyway that you could&amp;nbsp;&lt;SPAN&gt;compile the Addon for the latest version for People with no experience in compiling Addons?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This would be highly&amp;nbsp;&lt;/SPAN&gt;appreciated.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 13:59:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/355324#M39</guid>
      <dc:creator>Ady84a</dc:creator>
      <dc:date>2022-09-07T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automation: Recurring execution of publishing</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/355340#M40</link>
      <description>&lt;P&gt;The Tapir plugin team plan to compile an Add-on extanding the JSON/Plugin Commands. You should connect to the team (&lt;A href="https://www.Archicad-api.com/" target="_blank"&gt;https://www.Archicad-api.com/&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 15:46:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Automation-Recurring-execution-of-publishing/m-p/355340#M40</guid>
      <dc:creator>Mathias Jonathan</dc:creator>
      <dc:date>2022-09-07T15:46:22Z</dc:date>
    </item>
  </channel>
</rss>

