I have built a dll for AutoCAD Map 2D 2015 with out any issue. I tried to execute the same dll in AutoCAD Map 3D 2023 and getting the attached error and require help in that. Please let me know for any other questions.
Solved! Go to Solution.
I have built a dll for AutoCAD Map 2D 2015 with out any issue. I tried to execute the same dll in AutoCAD Map 3D 2023 and getting the attached error and require help in that. Please let me know for any other questions.
Solved! Go to Solution.
Solved by O_Eckmann. Go to Solution.
Solved by norman.yuan. Go to Solution.
Solved by fieldguy. Go to Solution.
you will have to show some code. when i see "Method" errors it's usually caused by misuse of brackets - "()". but, with code errors like that your dll should not "Build" successfully.
2015 is very old. It's quite possible the ManagedMapApi has changed. i don't know how to check that.
<edit>
try changing the attached reference in your 2015 dll to the newest ManagedMapApi (2023). this would confirm that the "Build" is successful.
you will have to show some code. when i see "Method" errors it's usually caused by misuse of brackets - "()". but, with code errors like that your dll should not "Build" successfully.
2015 is very old. It's quite possible the ManagedMapApi has changed. i don't know how to check that.
<edit>
try changing the attached reference in your 2015 dll to the newest ManagedMapApi (2023). this would confirm that the "Build" is successful.
Thanks for your reply. I have changed all the reference to AutoCAD Map 3D 2023. I am getting compile errors as in the attached image. I that an issue with .Net Framework, please help me in this.
Thanks for your reply. I have changed all the reference to AutoCAD Map 3D 2023. I am getting compile errors as in the attached image. I that an issue with .Net Framework, please help me in this.
i am not sure i can help at all. your pic indicates that all "Autodesk" Apis are not found. was that the result of changing the path to ManagedMapApi?
i would not attempt to modify a 2015 autocad application. i would start a new .NET Framework project with current autocad Apis and copy / paste old code piece by piece. you don't need any code to see that the Api's are available (blue squiggles under "using Autodesk." means not available).
i would not support anything for 2015 - it's far too old.
i am not sure i can help at all. your pic indicates that all "Autodesk" Apis are not found. was that the result of changing the path to ManagedMapApi?
i would not attempt to modify a 2015 autocad application. i would start a new .NET Framework project with current autocad Apis and copy / paste old code piece by piece. you don't need any code to see that the Api's are available (blue squiggles under "using Autodesk." means not available).
i would not support anything for 2015 - it's far too old.
Thanks for the reply. The same solution is giving expected results in AutoCAD Map 3D 2015 and getting the exception only in higher version. I will try to build the solution in AutoCAD Map 3D 2023.
Thanks for the reply. The same solution is giving expected results in AutoCAD Map 3D 2015 and getting the exception only in higher version. I will try to build the solution in AutoCAD Map 3D 2023.
Since you are targeting Acad2023, you need to change your DLL project's target .NET framework from older version to Framework 4.8 (I bet this is the problem you have).
Norman Yuan
Since you are targeting Acad2023, you need to change your DLL project's target .NET framework from older version to Framework 4.8 (I bet this is the problem you have).
Norman Yuan
Thank you for the reply, will build the solution with proper .Net Framework.
Thank you for the reply, will build the solution with proper .Net Framework.
Hi @subash.nalla ,
I've detect same problem here : https://forums.autodesk.com/t5/autocad-map-3d-developer/mapvalue-assign-error/m-p/9170669
DLL compiled for Map 2015 works well until 2018.
But it's necessary to create a new DLL for 2019 (with target Framework 4.7) for version above. This DLL work from 2019 to 2023.
Olivier
Olivier Eckmann
Hi @subash.nalla ,
I've detect same problem here : https://forums.autodesk.com/t5/autocad-map-3d-developer/mapvalue-assign-error/m-p/9170669
DLL compiled for Map 2015 works well until 2018.
But it's necessary to create a new DLL for 2019 (with target Framework 4.7) for version above. This DLL work from 2019 to 2023.
Olivier
Olivier Eckmann
Hi Thanks for the reply in my case dll didn't work for Map 3D 2017 also. I have built in Map 3D 2017 and it is working fine.
Hi Thanks for the reply in my case dll didn't work for Map 3D 2017 also. I have built in Map 3D 2017 and it is working fine.
Hi Thanks for the reply, built in Map 3D 2017 and it is working fine.
Hi Thanks for the reply, built in Map 3D 2017 and it is working fine.
Can't find what you're looking for? Ask the community or share your knowledge.