We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2017-04-17 12:07 AM - last edited on 2023-07-12 08:44 PM by Doreena Deng
2017-04-18 07:37 PM
leceta wrote:Not remotely – .NET isn't something you bolt onto a product. It has to be at the core of your development. And the implementation would have to be cross-platform, but not even Microsoft supports that idea for its own Office software.
Just a question from a noob: Would it make sense an Archicad API in .NET?? would this make easier to develop connection plugins in other platforms like Grasshopper?
Would it make sense to wrap ArchiCAD C++ library to other languages?
2017-04-19 01:37 PM
2017-04-20 11:57 AM
stefan wrote:Anything is
It seems possible for some other software. E.g. Unity is a C++ Game Engine running on most platforms (Windows, macOS, iOS, Android, PS4, Wii, Xbox, WebGL...), but it allows editor and runtime scripts but also plugins in UnityScript, Boo and C#. It uses the Mono runtime which allows it to also work on other platforms. For performance reasons, they even have means to re-translate the "intermediate code" back into native C++ code to speed up things when running a published game (IL2CPP).
With Microsoft open sourcing a part of the .NET framework and better support on Linux and OSX, it may be technically possible. Probably very complex for a 30-year old software such as ARCHICAD which was never written that way.
What you could do is create your own wrapper around the ARCHICAD C++ API and expose that to other systems. Not ideal and lots of work, but not impossible. But you are limited to what is exposed via the API and you probably need your own native ARCHICAD C++ add-in which does all the communication.
We've created an add-in which communicates with ARCHICAD via HTTP requests. But this is mostly for querying parameters & quantities and not to fully control the software.
2017-04-20 06:26 PM
2017-04-21 10:21 AM
leceta wrote:It might be better to focus your requests on statements like these, i.e.
i see. My interest is particularly centered in a conversation between Archicad and Grasshopper.
My point is that graphisoft should path the way for non-professional programmers, as is my case, to be able to develop little tools to solve specific problems that as a bim manager want to solve for the firm I work. Chances are that an architect is not properly prepared to develop in C++ and other managed languages but instead is more a more common to found architects able to write little scripts in python or C#.
2017-04-23 06:04 PM
Ralph wrote:The GrassHopper add-on uses HTTP communication with a Rhino-side add-on, and ACAPI_Command_CallFromEventLop to achieve its purpose. The Rhino/GH side uses the Mono.framework, but the ARCHICAD side is pure C++.leceta wrote:It might be better to focus your requests on statements like these, i.e.
i see. My interest is particularly centered in a conversation between Archicad and Grasshopper.
My point is that graphisoft should path the way for non-professional programmers, as is my case, to be able to develop little tools to solve specific problems that as a bim manager want to solve for the firm I work. Chances are that an architect is not properly prepared to develop in C++ and other managed languages but instead is more a more common to found architects able to write little scripts in python or C#.whatyou want to achieve rather than how. Injecting .NET into the discussion opens a big can of worms.
There have been a number of requests on the forum for general-purpose scripting within ARCHICAD. It might be a good idea to search for them and bump any that capture the same idea.
2017-05-25 02:56 PM
2017-05-26 10:20 AM
leceta wrote:It could also be said:David wrote:
Have you seen the amount of plug-ins available for Grasshopper? How many of those do you think would have been written if C++ was the only available language? Developing in C# is vastly simpler than C++. Good IDEs and compilers are available for free, the same binaries can be executed on multiple operating systems (provided they do not rely on something which is specific to one of them), there is a huge amount of highly readable information on writing C# code, and with the open sourcing of .NET it has become less part of the Microsoft ecosystem.
2017-11-15 08:51 PM
What is the functionality you require most?Programmatically access to Archicad database from Grasshopper.