haplokuon / netDxf

.net dxf Reader-Writer
MIT License
966 stars 392 forks source link

.Net 4.8 issue #432

Open MiguelG97 opened 1 year ago

MiguelG97 commented 1 year ago

Hi community, image I'm facing the following error by integrating netDxf library into a revit plug-in. The framework to use is .net 4.8 and I've being trying to install every single version of netDxf in nuget manager as well as adding .net project to my solution and referecing it to my project but the same error still shows up. Any ingsights about what it could be the root cause of this issue? All the best, Miguel G.

.Net Framework 4.8 Platform target x64

DavidWishengrad commented 1 year ago

Without Revit installed or knowledge of their api and some calling/linking code snippets, there is not much I can say other that inputsimulator to tell apps that have a limitted api or none at all what to do. In the end, it worth having that flexibility right at hand when necessary. You may not even need their api to accomplish your end goal. Hope that helps.

P.S. You may want to try signing up over at openai and asking it to generate the functions that you need. I have seen and heard some pretty amazing stuff about that from people that know their stuff.

P.P.S. The message appears to say you are missing dependencies. Look under your project resources. If it is using it there then those files need to be present and possibly registered on other machines.

P.P.P.S. If the dll needs to be registered, simply regsver32 (yourdll) and getting a "success" message can be a red herring. As the systems will say that and still use and old version until you first unregister a dll of the same name first. That mess started in Vista. It's good to know if you are doing anything like that.

MiguelG97 commented 1 year ago

I kind of fixed this by copying manually all the project c# code in a folder inside my project. image Works as a workaround for now. Meanwhile, I will double check what you suggested above.

Thanks much David!