<?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: Command line Parameters in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/645177#M1062</link>
    <description>&lt;P&gt;This package you are developing looks very interesting and helpful.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;i unfortunately don’t gave have any answers for you though.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;ive always wanted to be able to open teamwork files from command line though but have not been able to with it out myself.&amp;nbsp;&lt;BR /&gt;I did discover if you open a teamwork file from the recent file list (File&amp;gt;Recent) and check the resulting processes executed command line in task manager there are a multitude of additional arguments relating to the teamwork server address, GUID of the teamwork file etc. I attempted to reverse engineer it but had no luck.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 11:12:07 GMT</pubDate>
    <dc:creator>scottjm</dc:creator>
    <dc:date>2025-01-06T11:12:07Z</dc:date>
    <item>
      <title>Command line Parameters</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/645167#M1061</link>
      <description>&lt;P&gt;Happy new year everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to reliably open Archicad windows / projects from script.&lt;/P&gt;&lt;P&gt;Is there a list of the avalible commad line parameters you can pass to archicad.exe?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My aims:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I want to write tests for my package (&lt;A href="https://github.com/SzamosiMate/MultiConnAC" target="_blank" rel="noopener"&gt;https://github.com/SzamosiMate/MultiConnAC&lt;/A&gt;). The package manages connections to multiple archiCAD windows. To ensure it works properly I need to be able to close/open files from script.&lt;/LI&gt;&lt;LI&gt;I want to be able to open files from information supplyed by the user. That seams much harder as there is a miriad of different windows that can pop up (recive changes, AC crashed, sign in to graphisoft ID, extract libparts from pla...). Is there a flag to suppress these? Or does anyone know of a way around this?&lt;/LI&gt;&lt;LI&gt;I want to open teamwork files with credentials supplyed by the user&lt;/LI&gt;&lt;/UL&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>Mon, 06 Jan 2025 09:35:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/645167#M1061</guid>
      <dc:creator>SzamosiMate</dc:creator>
      <dc:date>2025-01-06T09:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Command line Parameters</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/645177#M1062</link>
      <description>&lt;P&gt;This package you are developing looks very interesting and helpful.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;i unfortunately don’t gave have any answers for you though.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;ive always wanted to be able to open teamwork files from command line though but have not been able to with it out myself.&amp;nbsp;&lt;BR /&gt;I did discover if you open a teamwork file from the recent file list (File&amp;gt;Recent) and check the resulting processes executed command line in task manager there are a multitude of additional arguments relating to the teamwork server address, GUID of the teamwork file etc. I attempted to reverse engineer it but had no luck.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 11:12:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/645177#M1062</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2025-01-06T11:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Command line Parameters</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/645780#M1063</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Nice find about the parameters when opening recent files! I could not make any sense of it either, but interesting &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Opening Teamwork files&lt;/H3&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I have found an answer from &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/11183"&gt;@Tibor Lorantfy&lt;/a&gt;&amp;nbsp;to opening Teawork files browsinf Tapir's Discord.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Not a 100% what I was searching for, but close enough. He talks about the GetProjectLocation Tapir command.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;"It gets the currently opened project's location using API, it closes that project and it's able to reopen the same project by passing the location as commandline parameter to Archicad executable.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;The retrieved location (IO::Location) contains the username and coded password for the teamwork project.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;You are not able to open a teamwork project within an already running Archicad instance&lt;/SPAN&gt;&lt;SPAN&gt;, but you can start a new Archicad which will open the given teamwork project&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN&gt;Thats what I do from python&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Use GetProjectInfo command:&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;A class="" title="https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/recurring_publish.py#L35" href="https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/recurring_publish.py#L35" target="_blank" rel="noreferrer noopener"&gt;&lt;SPAN&gt;https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/recurring_publish.py#L35&lt;/SPAN&gt;&lt;/A&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Get 'projectLocation' from response:&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;A class="" title="https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/recurring_publish.py#L76" href="https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/recurring_publish.py#L76" target="_blank" rel="noreferrer noopener"&gt;&lt;SPAN&gt;https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/recurring_publish.py#L76&lt;/SPAN&gt;&lt;/A&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Use subprocess.Popen to start new Archicad with project location as cmdline parameter:&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;A class="" title="https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/utilities.py#L59" href="https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/utilities.py#L59" target="_blank" rel="noreferrer noopener"&gt;&lt;SPAN&gt;https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/utilities.py#L59&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; Note&lt;/SPAN&gt;&lt;SPAN&gt;, on macOS the executable is not what GetArchicadLocation command returns&lt;/SPAN&gt;&lt;SPAN&gt;, you should append &lt;/SPAN&gt;&lt;SPAN&gt;/Contents&lt;/SPAN&gt;&lt;SPAN&gt;/MacOS&lt;/SPAN&gt;&lt;SPAN&gt;/ARCHICAD&lt;/SPAN&gt;&lt;SPAN&gt;, like I do here&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;A class="" title="https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/utilities.py#L79" href="https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/utilities.py#L79" target="_blank" rel="noreferrer noopener"&gt;&lt;SPAN&gt;https://github.com/tlorantfy/archicad-python-scripts/blob/96ac3922dc69c7a6dd112cfe1fb5ddb55e265d6b/utilities.py#L79"&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;H3&gt;Pop-up dialogs&lt;/H3&gt;
&lt;DIV class=""&gt;As for the dialogs that pop up at startup I found that a good deel of them has a unique error message when you send a JSON command while they are open. I guess that can be the basis of a script with an automation tool.&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;The less serious part&lt;/H3&gt;
&lt;P&gt;This topic has became the official source of command line parameter related information according to ChatGPT&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="SzamosiMate_0-1736542197853.png" style="width: 639px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/81755iAADB1E9DCA80E60B/image-dimensions/639x313?v=v2" width="639" height="313" role="button" title="SzamosiMate_0-1736542197853.png" alt="SzamosiMate_0-1736542197853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2025 14:00:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/645780#M1063</guid>
      <dc:creator>SzamosiMate</dc:creator>
      <dc:date>2025-01-12T14:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Command line Parameters</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/659972#M1078</link>
      <description>&lt;P&gt;I have solved the issue, and impledmented it to my package since posting the question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can now open teamwork projects with user-provided credentails with &lt;A href="https://github.com/SzamosiMate/multiconn_archicad" target="_blank" rel="noopener"&gt;Multiconn Archicad.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From latest relese:&lt;/P&gt;&lt;H3&gt;v0.2.0-alpha Relese&lt;/H3&gt;&lt;H3&gt;New feature - Project handlers&lt;/H3&gt;&lt;P&gt;Added 2 new actions to help manage open ArchiCAD instances:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FindArchicad&lt;/LI&gt;&lt;LI&gt;OpenProject&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Created a DialogHandler package. When creating a MultiConn instance, you can now supply a DialogHandler instace. DialogHandlers are platform dependent. Currently implemented Handlers:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;EmptyDialogHandler&lt;/LI&gt;&lt;LI&gt;WinDialogHandler&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The dialog handlers recive a dialog_handler_factory. factorys are palatform AND language dependent. Currently implemented factorys:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;win_int_handler_factory&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;New feature - Serialize ConnHeaders&lt;/H3&gt;&lt;P&gt;Conn Headers can now be saved to disk, and be loaded back up later. This allows users to create scripts that open up a lot of ArchiCAD windows one-by-one to executes commands. Passwords are not stored, it must be provided after loading data.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ConnHeaders can now be unassigned, independent from MultiConn. Unassigned Connheaders have no port, and status.UNASSIGNED status.&lt;/LI&gt;&lt;LI&gt;Added to_dict() and from_dict() methods to conn headers and all related datastructures.&lt;/LI&gt;&lt;LI&gt;split ArchiCadID to Teamwork-, Solo- and UntitledProjectID&lt;/LI&gt;&lt;LI&gt;added class TeamworkCredentials (parameter of TeamworkProjectID to better handle username/password)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 18 Apr 2025 20:56:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/659972#M1078</guid>
      <dc:creator>SzamosiMate</dc:creator>
      <dc:date>2025-04-18T20:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Command line Parameters</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/659975#M1079</link>
      <description>&lt;P&gt;Wow! This looks awesome! Definitely need to set some time aside to have a play with this. Looks like the perfect tool for bulk automation!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 21:15:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Command-line-Parameters/m-p/659975#M1079</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2025-04-18T21:15:09Z</dc:date>
    </item>
  </channel>
</rss>

