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

!Restored: two questions, Project Info and filename

Anonymous
Not applicable
Hello,

a) I was wondering is it possible to create more entries in the project info from within an addon. Ive found a get and a set. Just no new

b) Can you pull the name of the file/drawing opened in AC

these may be silly questions, but i appreciate all help

thanks,
Rhys
1 REPLY 1
Ralph Wessel
Mentor
Eyez wrote:
a) I was wondering is it possible to create more entries in the project info from within an addon. Ive found a get and a set. Just no new
b) Can you pull the name of the file/drawing opened in AC
I haven't attempted to add items to project info, so can't comment on that.

You can get the name of the open project file using ACAPI_Environment with APIEnv_ProjectID. The returned data includes the location of the project file, from which you can extract the file name.
Ralph Wessel BArch
Software Engineer Speckle Systems