XbimEssentials icon indicating copy to clipboard operation
XbimEssentials copied to clipboard

Using XbimEssentials in a C++ environnement?

Open SonaBIMDev opened this issue 3 years ago • 3 comments

Hi, Last days I made a simple application in C# to get all materials of a specific wall. Everything was ok. A get the XbimEssential NuGet package and I was able to code : using Xbim.Ifc; Now, I'd like to do the same thing with a C++ application. Is it possible? How to get packages? Thx

SonaBIMDev avatar Mar 09 '21 14:03 SonaBIMDev

Yes, this should be possible. But this is not specific to Xbim. You should be able to use any method for C#/C++ interoperability. If you are using /CLI, you can just reference C# code directly.

martin1cerny avatar Mar 09 '21 16:03 martin1cerny

Hi martin. Whow! I'm not sure to understand this solution.... In fact, I'm try to open an IFC file into Unreal with a C++ class. As I wrote, I made on C#, a dll with a simply function to open the IFC but it does not work... In C++ Visual Studio project, I don't know how to use Xbim.Essentials NuGet package. Nothing happens, whereas in a C# dll project, XBim.Essentials is well added into Dependences/Packages...

SonaBIMDev avatar Mar 09 '21 16:03 SonaBIMDev

As I said, XbimEssentials is no different to any other .NET NuGet package. You would be better to search official Microsoft documentation or StackOverflow (or ask there) to find more about how to use NuGet packages in C++/Unreal projects.

martin1cerny avatar Mar 10 '21 08:03 martin1cerny