.NET

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

vb.net sample for land desktop 2005 & 2006

192 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
maccip
Posts: 10
Registered: ‎02-24-2006
Message 2 of 3 (192 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
saluki
Posts: 188
Registered: ‎09-18-2005
Message 3 of 3 (192 Views)

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

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

Check out this discussion string . . .

http://discussion.autodesk.com/thread.jspa?messageID=5005214

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

http://www.aurigma.com/Products/COMtoNET/

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:

civil3d.netgmail.com

Good luck,

Scott

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
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 to get help installing your software.

Ask the Community