Author Topic: Open drawing without loading xrefs  (Read 3620 times)

0 Members and 1 Guest are viewing this topic.

Guest

  • Guest
Open drawing without loading xrefs
« on: March 30, 2007, 09:44:51 AM »
Is it possible to open a drawing that has xrefs but NOT have the xrefs load?  I'm doing some batch processing stuff to a bunch of drawings and it would help to speed things up if the xrefs didn't load.

RamonC

  • Guest
Re: Open drawing without loading xrefs
« Reply #1 on: March 30, 2007, 03:02:08 PM »
When I batch process, I move the xtrefs temporarily to another folder.

MikeJarosz

  • Guest
Re: Open drawing without loading xrefs
« Reply #2 on: May 18, 2007, 11:40:55 AM »
You need object DBX. This is an activex program written by autodesk to open dwg files non-graphically.

This will take some learning, but the payoff is tremendous. I can open and process 300 dwg files in 30 seconds (no exaggeration)

check this out on AUGI: http://forums.augi.com/showthread.php?t=16748

I grabbed this code about a year ago, and I've written four applications since! Once you get going, you will spend a lot of time online, because there is NO documentation from autodesk. They will be replacing it with RealDrawing, presumably with documentation. But objDBX is free and it installs with acad. RealDrawing is $$$$


[excerpt from the website:]
'Requires reference to AutoCAD/ObjectDBX Common Type Library
Option Explicit

Sub Test()
  Dim oDBX As AxDbDocument
  Set oDBX = New AxDbDocument
  oDBX.Open "C:\Temp\Test.dwg"
  MsgBox "First layer name is " & oDBX.Layers.Item(0).Name
  Set oDBX = Nothing
End Sub[/font]

Guest

  • Guest
Re: Open drawing without loading xrefs
« Reply #3 on: May 18, 2007, 11:46:01 AM »
I don't remember the exact reason I posted this (so it's obviously not that important anymore) but I know with ODBX there are some limitations as to what you can do; I.E. attaching xrefs, plotting and a few other things that I can't remember.

Thanks for the reply.