cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Streamline your workflows and master BIM coordination! Program starts April 28!

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

addon.apx not a valid win32 application

dushyant
Enthusiast
Hello,
On trying to compile an addon on visual-studio-2017, I get the error: "addonName.apx is not a valid win32 application".. What's the problem here? (I have compiled this addon earlier and it worked.)

Thanks.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
dushyant wrote:
Can you please tell where exactly is this path to be set in Visual Studio?
In the project Properties, under the section Configuration Properties > Debugging > Command
Just set a path to the target version of Archicad
Ralph Wessel BArch
Central Innovation

View solution in original post

7 REPLIES 7
In what context did you see this error? In a sense, the report is correct - an add-on is not an application.
Ralph Wessel BArch
Central Innovation
dushyant
Enthusiast
I get this error while trying to build the addon from the Visual-Studio-Solution..
I assume this was when you tried to debug or run the add-on? If so, you need to set the executable path for debugging to the Archicad application.
Ralph Wessel BArch
Central Innovation
dushyant
Enthusiast
Can you please tell where exactly is this path to be set in Visual Studio?
Tibor Lorantfy
Graphisoft Alumni
APX Add-Ons are dynamic librarys (DLL) on Windows platform so those cannot be executed.
The executable is the ARCHICAD.exe, that will load your Add-On, so you should set the path of ARCHICAD.exe.
After ARCHICAD was opened, you can load your Add-On from the Add-On Manager dialog (if it wasn't loaded yet).
Solution
dushyant wrote:
Can you please tell where exactly is this path to be set in Visual Studio?
In the project Properties, under the section Configuration Properties > Debugging > Command
Just set a path to the target version of Archicad
Ralph Wessel BArch
Central Innovation
dushyant
Enthusiast
Thanks a lot!