Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Document name

gehairing
Participant
Hello forum

Does someone know how i can get the name of the current open document in Archicad ?
I mean the name of the open file.

Thanks a lot.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Ralph Wessel
Mentor
You can get the details of the open project file by calling ACAPI_Environment with APIEnv_ProjectID. The returned project information contains the project file details, from which you can extract the name and location. Obviously this is only relevant when a saved file is open.
Ralph Wessel BArch
Software Engineer Speckle Systems

View solution in original post

2 REPLIES 2
Solution
Ralph Wessel
Mentor
You can get the details of the open project file by calling ACAPI_Environment with APIEnv_ProjectID. The returned project information contains the project file details, from which you can extract the name and location. Obviously this is only relevant when a saved file is open.
Ralph Wessel BArch
Software Engineer Speckle Systems
gehairing
Participant
Thank you Ralph