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

vb.net sample for land desktop 2005 & 2006

196 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 (196 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 (196 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,

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
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!