Hi everyone,
as from the title when I created a class using c# vs2010 pro and through it I used section variable to access every element from a sample line group I had gotten that message:
Section' is an ambiguous reference between 'Autodesk.AutoCAD.DatabaseServices.Section' and 'Autodesk.Civil.Land.DatabaseServices.Section
anyone can help me
thanks
You will get the same thing with Surface objects.
Create another using directive with a shortcut alias, such as:
using CivDbSvc = Autodesk.Civil.Land.DatabaseServices;
Then when you want to reference the C3D Section object do so like this:
CivDbSvc.Section section = (CivDbSvc.Section)tr.GetObject(id, OpenMode.ForRead, false);