Converting COM-based Application

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone
Not sure if this is the right place but here goes anyway...
I currently have a Windows VB.net app that uses COM to open/save/close and manipulate drawings in AutoCAD...
Here's how I open a drawing
AutoCAD_CurrentDwg = AutoCAD_Instance.Documents.Open(strAutoCADFilePath)
I work with various blocks and their attributes like so
Dim AutoCAD_Block_Attributes As Object = AutoCAD_Block_Reference.GetAttributes For Each Me.AutoCAD_Block_Attribute In AutoCAD_Block_Attributes Dim strAutoCAD_Block_Attribute_TagString As String = AutoCAD_Block_Attribute.TagString AutoCAD_Block_Attribute.TextString = strSomeDB_Value
As I mentioned, this runs external to AutoCAD but I was wondering if it would be beneficial to re-write the app to run within AutoCAD... also, I believe that COM is "obsolete"? Should I not be using it?
Doing some reading, I think that my app could be revised to run inside AutoCAD via NETLOAD, using ObjectARX? One concern I have is that my app right now works with many versions of AutoCAD, not need to re-issue because my DIM statements are generic...
Private AutoCAD_Instance As Object Private AutoCAD_CurrentDwg As Object Private AutoCAD_Document As Object
Am I in the right forum? Thoughts?
Thanks!
-Justin