Building for both: Bricscad .NET API and Autocad .NET API
Hi
I need to develop for both, Bricscad AND Autocad.
As I learned here (https://forum.bricsys.com/discussion/20400) that the .NET interface is source compatible, but not binary compatible.
Is there a documentation or a sample VisualStudio-project which shows, how to easily build a library for Bricscad AND Autocad?
I assume that I need two VisualStudio projects sharing the same source code.
Thanks!
Hans
0
Comments
-
Hi Hans,
Exactly right, you need two projects in your solution, each with references to the appropriate libraries and each with a definition I.e. ACAD/BCAD, so you can use #if statements as needed. The trick is to add your code files to a common folder and use ‘Add As Link’ to each project. I have attached a sample that I use (C#). Caveat, Visual studio will only let you save projects as templates, not solutions.
Hope this helps ,
Cheers
Dan
Capture.JPG0 -
Hi DanYour a hero!!!You exactly spotted my needs and provided me with a excellent example!Thank you very much!Kind regards from SwitzerlandHans0
-
I'm looking bricscad Api for Sheet Metal
Does anyone know such a thing
lwm@abv.bg
0
This discussion has been closed.