Author Topic: Ploting from a AxDbDocument  (Read 2255 times)

0 Members and 1 Guest are viewing this topic.

Humbertogo

  • Guest
Ploting from a AxDbDocument
« on: June 15, 2007, 05:06:49 PM »
 how Ploting from a AxDbDocument vb.net
can not open  the drawing

Imports Autodesk.AutoCAD.Interop.Common


Dim dbxDwg As AxDbDocument
dbxDwg.Open(strFile)
« Last Edit: June 15, 2007, 05:09:07 PM by Humbertogo »

Jeff_M

  • King Gator
  • Posts: 4099
  • C3D user & customizer
Re: Ploting from a AxDbDocument
« Reply #1 on: June 15, 2007, 05:50:02 PM »
AFAIK, you cannot plot from an AxDbDocument. Plots require graphics, which AxDb docs do not produce.

MickD

  • King Gator
  • Posts: 3652
  • (x-in)->[process]->(y-out) ... simples!
Re: Ploting from a AxDbDocument
« Reply #2 on: June 15, 2007, 07:57:13 PM »
To expand on what Jeff said, in a graphical application sense you need to send your document to a device context (DC), this can be GDI, Opengl/DirectX (in acad it would be the GS (graphics system) classes from memory) or a printer say where the data is formed into the graphics for viewing or printing.
Now, whether you can do this without acad being 'open' I don't know but if you can get the doc and send it to the printer DC you may have a chance.
Something to think about anyway.
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien