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

Can I open a drawing from database?

2 REPLIES 2
Reply
Message 1 of 3
Dany79
246 Views, 2 Replies

Can I open a drawing from database?

I want to open and I want to work a drawing from a data stream of the data base without having saved the file in the hard disk.

Are there any method to do it?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Dany79

I'm not sure that I completely understand your request. Do you want to
create and work on a temporary database, or do you want to open a database
from a file without loading it in the editor, or am I missing the point
entirely?

//Create a database
Database tempDb = new Database(true, false);


//Get a database from a file 🙂
public Database GetDatabaseFromFile(string fileName)
{
Database databaseFromFile = new Database(false, true);
databaseFromFile.ReadDwgFile(fileName, System.IO.FileShare.None, false,
null);
return databaseFromFile;
}

Remember that you must Dispose of any database that you create when you are
done with it.
--
Bobby C. Jones

wrote in message news:5175897@discussion.autodesk.com...
I want to open and I want to work a drawing from a data stream of the data
base without having saved the file in the hard disk.

Are there any method to do it?
Message 3 of 3
Dany79
in reply to: Dany79

No,I don´t.

I have a drawing saved on a database as binary stream, and I want to open this drawing without having passed that binary stream to .dwg file at hard disk,i.e.,I want to open that drawing passing to AutoCAD that binary stream from database directly.

Thanks & regards

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