Skip to content

RevitAddin using `DllImport` to call `c++` functions.

License

Notifications You must be signed in to change notification settings

ricaun-io/RevitAddin.DllImport.Example

Repository files navigation

RevitAddin.DllImport.Example

Simple project example with a C++ dll and a RevitAddin project, using DllImport to call the dll functions.

Revit 2024 Visual Studio 2022 Nuke License MIT Build

This project was generated by the ricaun.AppLoader Revit plugin.

CPlusPlus

This project have this simple Math class, this way is not needed to use DllImport to call the dll functions.

CppToCsharp

Configuration

Output

The output of the CPlusPlus project was changed in all configurations to the bin and obj folder to make similar like csproj.

Output

.NET Framework and .NET Core

To make work in Revit the CPlusPlus project need to be configured to .NET Framework and .NET Core configurations with platform x64.

.NET Framework

Net-Framework

.NET Core

Net-Core

Nuke Automation

To make work with ricaun.Nuke the CPlusPlus project need to be configured to 2024 and 2025 configurations with platform x64, the same configuration as the main project.

Configuration

Installation

License

This project is licensed under the MIT License.


Do you like this project? Please star this project on GitHub!