.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

vb.net sample for land desktop 2005 & 2006

2 REPLIES 2
Reply
Message 1 of 3
saluki
311 Views, 2 Replies

vb.net sample for land desktop 2005 & 2006

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
2 REPLIES 2
Message 2 of 3
maccip
in reply to: saluki

If You Find a Sample, Please Tell Me. I'm Interested
Message 3 of 3
saluki
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost