Author Topic: Video : AutoCAD Civil 3D 2012 Surface .NET API  (Read 2263 times)

0 Members and 1 Guest are viewing this topic.

cadplayer

  • Bull Frog
  • Posts: 390
  • Autocad Civil3d, OpenDCL.Runtime, LISP, .NET (C#)
Video : AutoCAD Civil 3D 2012 Surface .NET API
« on: February 24, 2014, 04:48:30 AM »
Hello!

I want install my first plugin and have some problem. I work with C3D 2013, VS2012  and framework4 and have loaded all references, but itīs missing some namenspaces I donīt understand.

Code: [Select]
Error 1 The type or namespace name 'CommandClassAttribute' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\C3DSurfacesDemoCommands.cs 5 12 C3DSurfacesDemo
Error 2 The type or namespace name 'CommandClass' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\C3DSurfacesDemoCommands.cs 5 12 C3DSurfacesDemo
Error 3 The type or namespace name 'Land' does not exist in the namespace 'Autodesk.Civil' (are you missing an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\Civil3D\SurfaceStyleManager.cs 7 22 C3DSurfacesDemo
Error 4 The type or namespace name 'Land' does not exist in the namespace 'Autodesk.Civil' (are you missing an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\Civil3D\CivilTinSurface.cs 8 34 C3DSurfacesDemo
Error 5 The type or namespace name 'Land' does not exist in the namespace 'Autodesk.Civil' (are you missing an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\PlatoSample.cs 10 22 C3DSurfacesDemo
Error 6 The type or namespace name 'CommandMethodAttribute' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\C3DSurfacesDemoCommands.cs 11 10 C3DSurfacesDemo
Error 7 The type or namespace name 'CommandMethod' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\C3DSurfacesDemoCommands.cs 11 10 C3DSurfacesDemo
Error 8 The type or namespace name 'Land' does not exist in the namespace 'Autodesk.Civil' (are you missing an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\PlatoSample.cs 11 37 C3DSurfacesDemo
Error 9 The type or namespace name 'CommandClassAttribute' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\PlatoSample.cs 15 12 C3DSurfacesDemo
Error 10 The type or namespace name 'CommandClass' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\PlatoSample.cs 15 12 C3DSurfacesDemo
Error 11 The type or namespace name 'CommandMethodAttribute' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\PlatoSample.cs 21 10 C3DSurfacesDemo
Error 12 The type or namespace name 'CommandMethod' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\PlatoSample.cs 21 10 C3DSurfacesDemo
Error 13 The type or namespace name 'Editor' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\Utilities\EditorUtils.cs 29 24 C3DSurfacesDemo
Error 14 The type or namespace name 'CommandMethodAttribute' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\C3DSurfacesDemoCommands.cs 32 10 C3DSurfacesDemo
Error 15 The type or namespace name 'CommandMethod' could not be found (are you missing a using directive or an assembly reference?) G:\C# Lehrgang\Visual Studio 2010\NET\C3DSurfacesDemoCommands.cs 32 10 C3DSurfacesDemo
« Last Edit: February 24, 2014, 04:58:49 AM by cadplayer »

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Video : AutoCAD Civil 3D 2012 Surface .NET API
« Reply #1 on: February 24, 2014, 08:53:12 AM »
Where did this sample come from?

Your subject line says C3D2012, but the message references C3D2013. The 2013 API did away with the sub Namepscaes (Land, Road, Pipes, Survey), so it looks like this example was intended for C3D 2012 but you are attempting to build it for 2013. If this is the case, you need to reference accoremgd.dll and remove the .Land from the usings statements.