Visual Studio 2015 & Autocad 2015

Visual Studio 2015 & Autocad 2015

Anonymous
Not applicable
4,046 Views
6 Replies
Message 1 of 7

Visual Studio 2015 & Autocad 2015

Anonymous
Not applicable

So I recently bought Visual Studio 2015 to do some development for ObjectArx.net. However I feel I am regretting my decission because all the wizards and everything else is setup for vs2012 not for vs2015.

 

I did recently find this thread VS2012 - Update #5 and there are now wizards for vs2015 & autocad 2016 but not for 2015.

 

I have tried to work through the guides (Step01 Hello World) without using the wizrads but have recevied a lot of errors and here is how I have worked through most of them.

 

#1: Received the toolset errors so I had to install vs2012 to have toolset 110.

#2: Linker Output file mismatch. I left the Output File as $(OutDir)$(TargetName)$(TargetExt) and changed the information in General to have a TargetName & Target Extension as mentioned in the guide.

 

The following errors are things I can't seem to work past.

 

#3: Can't find atls.lib file so I added an additional library to reference the location of that file.

Which gives me an error of LNK1104 cannop open file 'atls.lib'

So I looked up online and found if I add the path to the atls.lib to the libraries in the linker that it should work. 

I added this path ( locates 'atls.lib' ) C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\lib\

But now I receive this error 

LNK1319 1 mismatches detected

but without much description it is hard to work past this.

 

 

 

#4: LNK2038: mismatch detected for 'RuntimeLibrary':value 'MD_DynamicRelease' doesn't match value 'MDd_dynamicDebug' in HellWorld.obj

I can't seem to figure out what to do about this one. I have tried changing the runtime library but I can't seem to get it to work.

 

Can anyone help me out? Or point me in the direction of so vs2015 information that should help me along my journey?

 

Here is screen shots of the errors and all my configuration options that I have already setup.

 

ObjectArx - Errors

 

Thanks in advance.

 

0 Likes
4,047 Views
6 Replies
Replies (6)
Message 2 of 7

Virupaksha_aithal
Autodesk Support
Autodesk Support

Hi

 

For AutoCAD 2015, you need to use Visual studio 2012 update 4 for ObjectARX development. Please note, ObjectARX development is complier specific and you need to have specific complier to develop plug-in. Please refer http://adndevblog.typepad.com/autocad/2014/04/visual-studio-2012-availability.html



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 7

Keith.Brown
Advisor
Advisor

Can you clarify if you are developing for c++ or for .NET.  C++ is compiler specific and you will need to do what Virupaksha suggests.  However if you are developing for .NET then you can use any version of Visual Studio.

 

I believe that the wizards for AutoCAD 2016 and Visual Studio 2015 will work just fine with AutoCAD 2015.  The only thing you might have to do is change the .NET version that your project is referencing.

 

0 Likes
Message 4 of 7

Anonymous
Not applicable

I am working on developing a c#.net plugin. I don't understand how I change the .NET version that my project is refering to, can you elaborate on that?

0 Likes
Message 5 of 7

Anonymous
Not applicable

Thank you for the reply. I am still slightly confused however. 

 

I am working on a c# plugin therefore I should be able to use visual studio 2013 correct? and if I am working on c++ plugin then I have to be using visual studio 2012 update #4?

 

The Autocad2015 Wizards are for visual studio 2012 so would it be easiest to obtain a copy of visual studio 2012 update #4 to make development go as easily as possible?

 

I am going to sign up for a bizspark account and see about getting a return on my visual stuio 2015 purchase considering it is nearly useless to me for developing anything within Autocad. Hopefully when that is approved I can obtain any of the visual studios I need to do any development I want.

 

I think some of the confusion for me is 1 I have never really used visual studio before, 2 I am not a developer simply a drafter with a dream, and 3 making purchases before fully researching everything I needed to before hand.

 

Thanks for all the support.

0 Likes
Message 6 of 7

Keith.Brown
Advisor
Advisor

To change the .NET version of a project.  Right Click on the project in the solution explorer and choose properties.  Then select application from the tabbed window that opens.  There should then be a dropdown for the Target Framework.  Here is where you would choose the .NET Framework that you are using.

 

There are wizards for every version of visual studio.  However, you do not really need them.  All they do is setup your references that you need for autocad and create a couple of generic classes.  You can do this yourself.  Just go to the My First Plugin page and download the project file.  It will have a complete project for you.  You can use this project to start all of your new projects by just deleting unneeded code.  I would get used to starting a project with the wizards until you get to know what you are doing.

 

I would return the visual studio if you can.  You can download the visual studio community edition (Read the notes to see if you qualify.  If you are just developing for yourself and don't intent to resell then you more then likely qualify).  You can download from here. http://usa.autodesk.com/adsk/servlet/index?id=18162650&siteID=123112

 

I know that there is a wizard that works with visual studio 2015.  I dont use them so I am just not sure where it is located.  You can check the Autodesk GitHub repository.  There is probably a branch for 2015/16.  https://github.com/ADN-DevTech/AutoCAD-Net-Wizards  . I would just install the vs 2013 version on 2015.  It will probably work.

 

 

Message 7 of 7

CADbloke
Advocate
Advocate

@Keith.Brown wrote:

 

I know that there is a wizard that works with visual studio 2015.  I dont use them so I am just not sure where it is located.  You can check the Autodesk GitHub repository.  There is probably a branch for 2015/16.  https://github.com/ADN-DevTech/AutoCAD-Net-Wizards  . I would just install the vs 2013 version on 2015.  It will probably work.

 

 


If you look at this commit: https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/commit/5ec73abf4d2dd588da6543ed8da456d7db6110bf you can see what was changed to get it to run in Visual Studio 2013, based on that you can see what needs doing to get it to run in VS2015.

 

There is a branch for AutoCAD 2016: https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/tree/ForAutoCAD2016 - that commit is on that branch.

 

I haven't looked at it closely but that repo probably needs some merging magic between the branches.

 

In any case, as Keith said - you don't need th wizards, just follow the instructions and make sure the DLL references have "copy local" set to false.

- - - - - - -
working on all sorts of things including www.tvCAD.tv & www.CADreplace.com
0 Likes