.NET

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

Can I open a drawing from database?

94 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 (94 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 (94 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

You are not logged in.

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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

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

Ask the Community