Visual Basic Customization

New Member
Posts: 1
Registered: ‎05-31-2013
Message 1 of 2 (452 Views)

C# connection to Autocad LT 2014

452 Views, 1 Replies
05-31-2013 11:41 AM

Hi all!


I have a c# connection, this code run fine in Autocad 2014. The final purpose of my program is create a .dwg file and add labels in mentioned .dwg file but not work in Autocad LT 2014 .


My code:



// Upon creation, attempt to retrieve running instance
m_AcadApp = (AcadApplication)Marshal.GetActiveObject("AutoCAD.Application.19");
m_bAcadInit = true;
// Create an instance
m_AcadApp = new AcadApplication();
m_bAcadInit = true;
} catch(Exception ex)
MessageBox.Show("An error occurred trying to open the AutoCAD.", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Information);

//In LT version this message appears



Is possible open Autocad LT 2014 with my code or similar code?


Thank you very much.

*Expert Elite*
Posts: 8,470
Registered: ‎06-29-2007
Message 2 of 2 (435 Views)

Re: C# connection to Autocad LT 2014

05-31-2013 03:06 PM in reply to: jolivalen



you might get start AutoCAD LT using e.g. Process.Start, but at least AutoCAD LT has no built in API, so there is also no COM-interface that can be used like you did with AutoCAD.

That is one of the major reasons why LT is much cheaper than the full version.


- alfred -

Ingenieur Studio HOLLAUS ...

You are not logged in.

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

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community