.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extract Block Attributes from UnOpened Dwg

1 REPLY 1
SOLVED
Reply
Message 1 of 2
VB_Autocad_guy
683 Views, 1 Reply

Extract Block Attributes from UnOpened Dwg

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. 

 

 

-Ben 

1 REPLY 1
Message 2 of 2
tyronebk
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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost