Quantcast
Viewing all articles
Browse latest Browse all 14319

C# connection to Autocad LT 2014

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:

 

try
{

// Upon creation, attempt to retrieve running instance
m_AcadApp = (AcadApplication)Marshal.GetActiveObject("AutoCAD.Application.19");
m_bAcadInit = true;
}
catch
{
try
{
// 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.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 14319

Trending Articles