AutoCAD Civil 3D Customization

AutoCAD Civil 3D Customization

Reply
Valued Contributor
fallright
Posts: 75
Registered: ‎09-14-2009
Message 1 of 2 (185 Views)

pipenetwork

185 Views, 1 Replies
10-23-2012 11:09 PM

In C3D-R2012 -programs I used

 

Imports Autodesk.Civil.Land.DatabaseServices

Imports Autodesk.Civil.Land.DatabaseServices.Styles

Imports Autodesk.Civil.PipeNetwork.DatabaseServices

Imports Autodesk.Civil.PipeNetwork.DatabaseServices.Styles

 

Now (in C3D-R2013) I get the error-message:

'Autodesk.Civil.Land.DatabaseServices' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

 

How do I have to change this in R2013 ?

Thnanks

ADN Support Specialist
Partha.Sarkar
Posts: 543
Registered: ‎06-09-2009
Message 2 of 2 (140 Views)

Re: pipenetwork

10-29-2012 09:19 PM in reply to: fallright

Hi,


In Civil 3D 2013 .NET API, namespaces have been simplified. Please refer this blog post -

http://adndevblog.typepad.com/infrastructure/2012/04/net-api-namespace-simplification-in-autocad-civ...

 

So, you just need to remove the "Land", "PipeNetwork" etc. -

 

Imports Autodesk.Civil.DatabaseServices

Imports Autodesk.Civil.DatabaseServices.Styles

 

Hope this helps.

 

Thanks,



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!