License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
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