Command line Parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-06 10:35 AM
Happy new year everyone!
I want to reliably open Archicad windows / projects from script.
Is there a list of the avalible commad line parameters you can pass to archicad.exe?
My aims:
- I want to write tests for my package (https://github.com/SzamosiMate/MultiConnAC). The package manages connections to multiple archiCAD windows. To ensure it works properly I need to be able to close/open files from script.
- 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?
- I want to open teamwork files with credentials supplyed by the user
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
I have solved the issue, and impledmented it to my package since posting the question.
You can now open teamwork projects with user-provided credentails with Multiconn Archicad.
From latest relese:
v0.2.0-alpha Relese
New feature - Project handlers
Added 2 new actions to help manage open ArchiCAD instances:
- FindArchicad
- OpenProject
Created a DialogHandler package. When creating a MultiConn instance, you can now supply a DialogHandler instace. DialogHandlers are platform dependent. Currently implemented Handlers:
- EmptyDialogHandler
- WinDialogHandler
The dialog handlers recive a dialog_handler_factory. factorys are palatform AND language dependent. Currently implemented factorys:
- win_int_handler_factory
New feature - Serialize ConnHeaders
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.
- ConnHeaders can now be unassigned, independent from MultiConn. Unassigned Connheaders have no port, and status.UNASSIGNED status.
- Added to_dict() and from_dict() methods to conn headers and all related datastructures.
- split ArchiCadID to Teamwork-, Solo- and UntitledProjectID
- added class TeamworkCredentials (parameter of TeamworkProjectID to better handle username/password)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-06 12:12 PM
This package you are developing looks very interesting and helpful.
i unfortunately don’t gave have any answers for you though.
ive always wanted to be able to open teamwork files from command line though but have not been able to with it out myself.
I did discover if you open a teamwork file from the recent file list (File>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.
Since AC13 | Current versions AC23.7000 & AC26.5002 | BIMCloud Basic | Python, GDL, VBA, PHP, SQL, CSS
Certified Graphisoft BIM Manger (2022)
Win 10, i9-9900K, 32GB, Quadro P2200, 500GB NVMe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2025-01-10
09:51 PM
- last edited on
‎2025-01-12
03:00 PM
by
Laszlo Nagy
Nice find about the parameters when opening recent files! I could not make any sense of it either, but interesting 🙂
Opening Teamwork files
I have found an answer from @Tibor Lorantfy to opening Teawork files browsinf Tapir's Discord.
Not a 100% what I was searching for, but close enough. He talks about the GetProjectLocation Tapir command.
You are not able to open a teamwork project within an already running Archicad instance, but you can start a new Archicad which will open the given teamwork project
- Use GetProjectInfo command:
- Get 'projectLocation' from response:
- Use subprocess.Popen to start new Archicad with project location as cmdline parameter:
Pop-up dialogs
The less serious part
This topic has became the official source of command line parameter related information according to ChatGPT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
I have solved the issue, and impledmented it to my package since posting the question.
You can now open teamwork projects with user-provided credentails with Multiconn Archicad.
From latest relese:
v0.2.0-alpha Relese
New feature - Project handlers
Added 2 new actions to help manage open ArchiCAD instances:
- FindArchicad
- OpenProject
Created a DialogHandler package. When creating a MultiConn instance, you can now supply a DialogHandler instace. DialogHandlers are platform dependent. Currently implemented Handlers:
- EmptyDialogHandler
- WinDialogHandler
The dialog handlers recive a dialog_handler_factory. factorys are palatform AND language dependent. Currently implemented factorys:
- win_int_handler_factory
New feature - Serialize ConnHeaders
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.
- ConnHeaders can now be unassigned, independent from MultiConn. Unassigned Connheaders have no port, and status.UNASSIGNED status.
- Added to_dict() and from_dict() methods to conn headers and all related datastructures.
- split ArchiCadID to Teamwork-, Solo- and UntitledProjectID
- added class TeamworkCredentials (parameter of TeamworkProjectID to better handle username/password)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
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!
Since AC13 | Current versions AC23.7000 & AC26.5002 | BIMCloud Basic | Python, GDL, VBA, PHP, SQL, CSS
Certified Graphisoft BIM Manger (2022)
Win 10, i9-9900K, 32GB, Quadro P2200, 500GB NVMe