muck Posted July 31, 2014 Share Posted July 31, 2014 Subject: Cannot connect Visual Studio 2010 to 64 bit AutoCAD 1013. I installed vb.net wizard for AutoCAD 2013 I use Visual Studio AutoCAD 2013 plugin icon when starting VS but there is a bunch of check boxes that need to be checked for references. I have no ideal which ones should be checked. Once VS is started I map acmgd.dll to C:\ObjectARX 2012\inc and autocad executable to C:\Program Files\Autodesk\AutoCAD 2013. Once all that is done and I am in the VS2012 program. I don't the AcCoreMdg reference not found so I manually route it to C:\Program Files\Autodesk\AutoCAD 2013. My references "copy local" is set to False by default. After that I have a bunch of assembly errors after I save the project to an external drive. How do I get VS 2010 to work with AutoCAD 2013? Seems like with net I spend more time trying to get the referencing to work which is a big disappointment with MS.net and Autodesk. Any help here? Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 31, 2014 Share Posted July 31, 2014 (edited) Subject: Cannot connect Visual Studio 2010 to 64 bit AutoCAD 1013. Hrm... I've never heard of AutoCAD 1013. I installed vb.net wizard for AutoCAD 2013 I use Visual Studio AutoCAD 2013 plugin icon when starting VS but there is a bunch of check boxes that need to be checked for references. I have no ideal which ones should be checked. Once VS is started I map acmgd.dll to C:\ObjectARX 2012\inc and autocad executable to C:\Program Files\Autodesk\AutoCAD 2013. Once all that is done and I am in the VS2012 program. I don't the AcCoreMdg reference not found so I manually route it to C:\Program Files\Autodesk\AutoCAD 2013. My references "copy local" is set to False by default. After that I have a bunch of assembly errors after I save the project to an external drive. How do I get VS 2010 to work with AutoCAD 2013? Seems like with net I spend more time trying to get the referencing to work which is a big disappointment with MS.net and Autodesk. Any help here? You're attempting to debug AutoCAD 2013 using a mix of 2012 SDK, and 2013 AcCoreMgd reference from the product's install folder. AutoCAD 2013 broke the API, introducing Core Console (AcCoreMgd.dll), so you must use ObjectARX 2013 SDK assemblies; do not map to product installed assemblies. Also, you don't have to use VS 2010, not sure if you're using full version or express... I use Visual Studio 2013 (Express is fine) to debug 2012-2015 here... More _ info. HTH [Edit] - Adding linky for AutoCAD .NET Wizard Edited August 4, 2014 by BlackBox Quote Link to comment Share on other sites More sharing options...
muck Posted July 31, 2014 Author Share Posted July 31, 2014 How do I map reference files mentioned above to AutoCAD 2013 ARX? AutoCAD 2013 wizard creates a OBJECTARX/inc folder with a single file called rxsdk_common.props in it. I have VS 2010 VB.net install in my machine. VS 2008 is also installed. Both are express editions. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 31, 2014 Share Posted July 31, 2014 (edited) Assuming both the required version of Visual Studio, and AutoCAD product(s) are installed, let's start over from the beginning with a new project.... Install ObjectARX 2013 SDK to C:\Autodesk\ObjectARX\2013\ folder. Install AutoCAD 2013 .NET Wizard. Launch Visual Studio, select New Project, select the AutoCAD 2013 VB plug-in template. In the AutoCAD .NET Wizard Configurator dialog, populate the top two text boxes (use your file paths, if different). Select the OK button. You're done, and can debug now (depending on the plug-in)... No adding AcCoreMgd, AcDbMgd, or AcMgd references, etc... The wizard does that for you as a starting point (for 2013+). Your app requirements will dictate if other, additional assembly references are needed. Edited July 31, 2014 by BlackBox Quote Link to comment Share on other sites More sharing options...
muck Posted August 4, 2014 Author Share Posted August 4, 2014 Where do I get ObjectARX 2013 SDK & AutoCAD 2013 .NET Wizard so I am make sure I have correct files to install this time? Thank you, Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 4, 2014 Share Posted August 4, 2014 Where do I get ObjectARX 2013 SDK & AutoCAD 2013 .NET Wizard so I am make sure I have correct files to install this time? See the links I provided here. Quote Link to comment Share on other sites More sharing options...
muck Posted August 4, 2014 Author Share Posted August 4, 2014 "MS pro or C++ must be present on Target Machine" message comes up. Express for vb.net is installed. What now. Thank you, Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 4, 2014 Share Posted August 4, 2014 "MS pro or C++ must be present on Target Machine" message comes up. Express for vb.net is installed. What now. I know this can be a bit confusing when first getting started, but if you read a bit more closely, you've attempted to install the ObjectARX (C++ for AutoCAD) Wizard and not the AutoCAD .NET Wizard... Scroll down a bit more for the appropriate link. When developing plug-ins for AutoCAD products in .NET, you might start with the AutoCAD .NET Wizard for the appropriate version, but you debug using managed assemblies (i.e., .NET) from the ObjectARX SDK... There; clear as mud. Cheers Quote Link to comment Share on other sites More sharing options...
muck Posted August 4, 2014 Author Share Posted August 4, 2014 Is this the install steps in proper order? Assuming a clean machine without VS. 1. Install VS express (Only Visual Basic express has been install my machine, C++ express has not been installed. Can C++ being absent be a problem?) 2. Install AutoCAD 2013 .NET Wizard download 3. Install ObjectARX 2013 SDK download 4. Launch Visual Studio, select New Project, select the AutoCAD 2013 VB plug-in template. 5. In the AutoCAD .NET Wizard Configurator dialog, populate the top two text boxes (use your file paths, if different). 6. Select the OK button. Thank you, Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 4, 2014 Share Posted August 4, 2014 Good point; I forgot that 2010 Express each C++, C#, and VB are separate installs. In newer VS Express, it is single install... You may need to install C++ Express... My old workstation (another employer) had all three installed, and I had no issues with Wizard install, etc. HTH Quote Link to comment Share on other sites More sharing options...
muck Posted August 5, 2014 Author Share Posted August 5, 2014 (edited) So I ran C++ express setup in VS. Now I get the message "1% is not valid Win 32 App" Now what do I get C++ on my machine for the Autodesk plugin? The computer is a Win 7 64 bit computer. Thank you, Edited August 5, 2014 by muck Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 6, 2014 Share Posted August 6, 2014 You're having all sorts of fun getting started; I'll see if I can swing back to help later today, due to workload. Cheers Quote Link to comment Share on other sites More sharing options...
muck Posted August 6, 2014 Author Share Posted August 6, 2014 Well, It seems like every time I save the project I get a series of error even though I have not done any coding. If I compile the program before I save I do not get any errors. Errors like "command method not defined" "promp status not defined" This occurs both with AutoCAD 2013 and 2012 VBA. Would saving the project to an hard external drive be the problem? Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 6, 2014 Share Posted August 6, 2014 Well, It seems like every time I save the project I get a series of error even though I have not doneany coding. If I compile the program before I save I do not get any errors. Errors like "command method not defined" "promp status not defined" This occurs both with AutoCAD 2013 and 2012 VBA. Would saving the project to an hard external drive be the problem? For clarity, you meant VB (i.e., VB.NET) and not VBA, correct? These are two very different things. I used to save all of my projects to an external flash drive, so that's a non-issue, unless you do not have sufficient permissions, etc... These days, I use Google Drive & Tortoise SVN, as an aside. Quote Link to comment Share on other sites More sharing options...
muck Posted August 7, 2014 Author Share Posted August 7, 2014 Got it vb.net working but does AutoCAD have to start after the green arrow is pushed for debugging? I usually have AutoCAD open when I do debugging. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 7, 2014 Share Posted August 7, 2014 Got it vb.net working but does AutoCAD have to start after the greenarrow is pushed for debugging? I usually have AutoCAD open when I do debugging. More information is needed. If your project was created using the .NET wizard, even if you're using Express, the startup object is configured to launch the application you specified in the wizard dialog upon Debug. Also note that Debug launch of AutoCAD, does not implicitly provide the loading of the assembly you're attempting to Debug; never mind loading the assembly at the correct point in the startup sequence (i.e., some code may need to run at Initialize(), others after startup is complete, etc.). Quote Link to comment Share on other sites More sharing options...
muck Posted August 7, 2014 Author Share Posted August 7, 2014 So is there a way to reconfigure debug and autocad startup with express editions? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.