Jump to content

Cannot connect Visual Studio 2010 to 64 bit AutoCAD 1013.


muck

Recommended Posts

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?

Link to comment
Share on other sites

Subject: Cannot connect Visual Studio 2010 to 64 bit AutoCAD 1013.

 

Hrm... I've never heard of AutoCAD 1013. :P

 

 

 

 

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 by BlackBox
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

ct.acad.net.wizard.png

 

 

 

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 by BlackBox
Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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. :thumbsup:

Link to comment
Share on other sites

"MS pro or C++ must be present on Target Machine" message comes up.

Express for vb.net is installed.

What now.

Thank you,

Link to comment
Share on other sites

"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. :thumbsup:

 

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. :beer:

 

Cheers

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by muck
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

 

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

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.).

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...