Distinguished Contributor
Posts: 136
Registered: ‎07-24-2009
Message 1 of 2 (360 Views)
Accepted Solution

Extract Block Attributes from UnOpened Dwg

360 Views, 1 Replies
06-03-2011 02:16 PM

Is there a way to access the block libary without opening a drawing? 

Or what object would you use to speed up drawing data extraction?


For example in other Cad programs you can open the drawing in a read-only mode or invisible and it speeds up the data extraction.


What would be a similiar method for Autocad 2011. 




Posts: 162
Registered: ‎08-17-2007
Message 2 of 2 (353 Views)

Re: Extract Block Attributes from UnOpened Dwg

06-03-2011 02:58 PM in reply to: VB_Autocad_guy

Yes you can. This is basically what you need to work with a drawing that isn't currently opened in the DocumentManager.


Dim db As New Database(False, True)
db.ReadDwgFile("C:\Test\drawing1.dwg", FileOpenMode.OpenForReadAndAllShare, True, "")


Let Kean walk you though an example. Searching for "ReadDwgFile" should yield plenty more examples.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community