Any ways to open drawings but not showing to the users?

Any ways to open drawings but not showing to the users?

ptranU2KHX
Advocate Advocate
285 Views
2 Replies
Message 1 of 3

Any ways to open drawings but not showing to the users?

ptranU2KHX
Advocate
Advocate

Hi everyone,

 

My project has some old functions using the document as a parameter.

However, I have researched and found out that using GetDocument from database.ReadDWGFile will not return the document. Ref: https://forums.autodesk.com/t5/net/get-the-document-when-working-with-drawings-in-side-database/m-p/...

 

Therefore I have to open drawings to get the documents. However, it might get the users disturbed since the screen keeps flashing.

I would like to ask if there is a way to open the drawing without showing on the screen.

I am open to other solutions.

 

Thank you.

0 Likes
286 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor

"Document" as .NET API class, is the drawing opened in AutoCAD editor, while "Database" can be either associated with an open document, or opened in memory as "side database" WITHOUT Document. 

 

You choose to open a drawing as Document or side Database with your code based on what your code/app needs to do. You might as well explain what you are to do, so that someone could offer useful suggestions.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 3

ptranU2KHX
Advocate
Advocate

Thanks @norman.yuan 

 

Well, the old functions I mentioned about using document; it is the longtransaction('document'). 

Therefore, I need to find way to convert the database to document but it seems impossible based on the post above.

0 Likes