Can Revit be redeveloped with C++?
Many friends used to develop AutoCAD with C++, or were familiar with C++, but they didn't find the sample project of C++ provided by Revit SDK, so they would like to know whether it is feasible to develop Revit with C++. Close this article to answer your question. The application development interface (API) provided by Revit belongs to. NET type and any support. NET framework is acceptable. Obviously, C# and VB.NET support it, while managed C++ supports it. NET framework, so it can also be used to develop Revit. In the help document of Revit API, for each interface method or property, the signature of managed C++ is listed. As follows: Syntax c # public static view schedule create key schedule (document, element id categorized) Visual Basic public shared function create key schedule (_ document as document, _ catalogyidaselement id _) as view schedule visual c++public: static view schedule create key schedule (document, ElementId^ categoryId) A code fragment managed by c++: The following is the declaration of Revit command class in the header file // public ref class command: PublicRevit:: iexternalcommand {public: Virtual Revit:: iexternalcommand}; The following is the implementation code # include "STD afx. h" # include " distri app 2 . h " revit::iexternalcommand::result distribapp2::command::execute(revit::externalcommanddata^ command data,String^% message, Revit:: elements et elements set) {//push revit:: i external command:: result ret command = revit:: i external command:: result:: success; //compa distribapp2::compa^ objcompa = gcnew distrib app 2::compa(); obj compa-& gt; ShowMsg(); RetCommand is returned but not in pure C++ mode, that is, no header file (*) is provided. H) and library files (*. Lib) to develop Revit. So after reading some materials about hosting C++, you can continue to use the advantages of your C++ language to develop Revit. The secondary development ability of Revit in different languages is the same, and there is no difference. C# is a very convenient language to use, and programmers who master C++ will soon master it.