.NET

Reply
Contributor
autogis
Posts: 14
Registered: ‎11-13-2013
Message 1 of 2 (82 Views)
Accepted Solution

The type or namespace 'Autodesk' could not be found

82 Views, 1 Replies
06-26-2014 04:38 AM

Ok folks, brand new to autocad map3d 2015 development.  I go an add a reference to the following:

 

C:\Autodesk\ObjectARX 2015\inc\AcCoreMgd.dll

C:\Autodesk\ObjectARX 2015\inc\AcDbMgd.dll

C:\Autodesk\ObjectARX 2015\inc\AcMgd.dll

 

Then I set the reference to "Copy Local" equal to false to all 3 above.  Then I type at the top of the page:

 

using Autodesk.AutoCAD.DatabaseServices;

 

I attempt to compile and I receive: "The type or namespace 'Autodesk' could not be found".  Which points to this line:

 

using Autodesk.AutoCAD.DatabaseServices;

 

With a squiqqly line around Autodesk.  What am I missing?  Thanks before hand.

 

Contributor
autogis
Posts: 14
Registered: ‎11-13-2013
Message 2 of 2 (68 Views)

Re: The type or namespace 'Autodesk' could not be found

06-26-2014 05:47 AM in reply to: autogis

Problem solved!

 

Here is the solution in case someone is interested.

 

1. Click on project properties.

2. Under the 'Application' tab, change the "Target Framework" from .Net Framework 4.0 to .Net Framework 4.5

 

Everything works and compiles now.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community