(moved from ObjectARX forum to this .Net forum)
Hi everybody,
I'm trying to achieve the following;
- Using AcCoreConsole and loading my custom .Net assembly
- Loading DWG files (file by file from disk, with a side or external database approach and using ReadDwgFile method.)
- Reading the Xref information (Object based, FileDependencyManager, etc)
Prefferable all files related to the main DWG file. - Writing the collected results to an XML file for further use.
Software;
- Windows 10
- AutoCAD software 2016 - SP1
- ObjectARX SDK for 2016 64bit
- VS2015 (vb) with .Net 4.5
I've been reading a lot of posts, blogs, tips and ideas how to load external databases and how to read references from a database. I'm able to succesfully read references when I'm reading the 'current' database, but I'm simply not able to read the same from an external database and it's getting realy frustrating. Also the jungle of the DGW objects doesn't realy help.
In my last try, I'm
- loading AcCoreConsole calling my custom method.
- Storing the current db into a temp var
- Creating a new database Database(False, True)
- ClosingInput
- Setting the HostWorking databse to my new DB
- Reading a DWG file from disk in ReadShareAll mode. E.g. "my_other_dwg_file.dwg"
- Going through the Graph using newdb.GetHostXrefGraph
- Strting with the root object, getting the FileName
==> Issue; I'm still getting the original drawing info "Drawing1"...
Also tried Database(False, False) and got an eInput error (or something). The removed the CommandFlag.Session which solved that part, but still no external database xref solution. Fried FIleManager with the initialize options, but it;s simpley empty (no index)...
Has anybody got a clue what I'm doing wrong here?
Rg, Ingmar.
P.s.;The anoing part also, is that my VS2015 debugging is only able to stop at break points, but not diplaying me the content of any variable or using the 'Watch' (It's called edit & continue I think). There was a (30-day) moment where I was using AutoCAD 2017+sp1 with SDK 2017 with a working debugger (which cause me a lot of effor to get it working). I recently downloaded 2016+sp1 with SDK 2016 to have an additional trial period of 30 day, but now the debugger is broken... Maybe it only works in AC2017...
Solved! Go to Solution.