Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pipenetwork

1 REPLY 1
Reply
Message 1 of 2
fallright
300 Views, 1 Reply

pipenetwork

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

1 REPLY 1
Message 2 of 2
Partha.Sarkar
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report