.NET

Reply
New Member
Dany79
Posts: 2
Registered: ‎05-16-2006
Message 1 of 3 (102 Views)

Can I open a drawing from database?

102 Views, 2 Replies
05-16-2006 07:01 AM
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?
*Bobby C. Jones
Message 2 of 3 (102 Views)

Re: Can I open a drawing from database?

05-16-2006 10:21 AM 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?
New Member
Dany79
Posts: 2
Registered: ‎05-16-2006
Message 3 of 3 (102 Views)

Re: Can I open a drawing from database?

05-17-2006 12:48 AM 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.