I am Programming with Visual Studio 2010.(VB.NET)
I am facing a problem that everytime I write "Dim Line1 as AcadLine" it shows error, whereas if I write "Dim Line1 As Autocad.Acadline" the code works fine.
Pls suggest which reference am I missing ? (I would like to write "Dim Line1 as AcadLine".)
Deepak
Hi,
then place on top of your code-file this statement
Imports Autodesk.AutoCAD.Interop.Common
...plus do some readme in helps about Framework and Namespaces 😉
- alfred -
I am doing that already
I was missing the new keyword
Public Cadapp as New Acadapplication
sorry the previuos reply was in some other context, I am still looking for the solution & will get back as soon as I find it
Hi,
then try this statement just to make sure you have all necessary references inluded:
Dim Line1 as Autodesk.AutoCAD.Interop.Common.AcadLine
Does that also result in an error? If so you are missing the reference to the COM-objects:
Autodesk.AutoCAD.Interop.Common.dll
- alfred -
Can you tell me what the 'Assembly' or COM is that I need to include in my VS2012 project?
I'm needing to open/save/close multiply dwg files programmatically, in order to update them to our latest version, as well as run a custom LISP routine upon each dwg to extract data from the drawing...
Thanks
Rick