.NET

.NET

Reply
Distinguished Contributor
188 Posts
0 Kudos
Registered: ‎09-18-2005
Post 1 of 3

vb.net sample for land desktop 2005 & 2006

199 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
10 Posts
0 Kudos
Registered: ‎02-24-2006
Post 2 of 3

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
188 Posts
0 Kudos
Registered: ‎09-18-2005
Post 3 of 3

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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!