Distinguished Contributor
Posts: 188
Registered: ‎09-18-2005
Message 1 of 3 (194 Views)

vb.net sample for land desktop 2005 & 2006

194 Views, 2 Replies
10-27-2005 09:05 PM
Is anyone programming land desktop 2005 and/or 2006 with the .net api?

I would appA basic sample of how to connect to LD via vb.net. I have successfully programmed Civil 3D with vb.net but do not have enough experience to adjust to the code to interact with LD. Here's a sample of the code I use to connect to C3D from the sample file provided by adsk.

Imports System
Imports AutoCAD = Autodesk.AutoCAD.Interop
Imports AeccLandLib = Autodesk.AECC.Interop.Land
Imports AeccUiLandLib = Autodesk.AECC.Interop.UiLand
Imports AecUIBase = Autodesk.AEC.Interop.UIBase

Private m_oAcadApp As AutoCAD.IAcadApplication
Private m_oAeccApp As AeccUiLandLib.IAeccApplication
Private m_oAeccDoc As AeccUiLandLib.IAeccDocument
Private m_oAeccDb As AeccLandLib.IAeccDatabase
Private m_nSLGIndex As Integer
Private m_sAcadProdID As String
Private m_sAeccAppProgId As String
Private m_sMessage As String

Thanks in advance
Active Member
Posts: 10
Registered: ‎02-24-2006
Message 2 of 3 (194 Views)

Re: vb.net sample for land desktop 2005 & 2006

02-24-2006 11:13 PM in reply to: saluki
If You Find a Sample, Please Tell Me. I'm Interested
Distinguished Contributor
Posts: 188
Registered: ‎09-18-2005
Message 3 of 3 (194 Views)

Re: vb.net sample for land desktop 2005 & 2006

02-25-2006 07:06 PM in reply to: saluki

Check out this discussion string . . .


It appears you can you the following software to convert the LD .lib files into a .net object model.


I haven't done a lot of programing with it but it appears to work well.

If you would like to collaborate on it or would like some actual sample codes email me at:


Good luck,

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 or visit the Installation and Licensing Forum to get help installing your software.