几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】need help rendering a drawing in .net1 (http://www.dimcax.com/hust/showthread.php?t=17303)

yang686526 2009-05-06 06:22 PM

【转帖】need help rendering a drawing in .net1
 
need help rendering a drawing in .net!
need help rendering a drawing in .net!
i am a paid commercial member and need assistance with rendering a drawing in .net windows forms - real soon - for a project i'm currently working on. there doesn't seem to be any existing posts that address my issue. basically, what i抦 trying to do is to render autocad drawings using the wingdi vectorizer that抯 provided with the dwgdirect files i downloaded. i have a windows form with a picturebox which is the target object where the drawing should ultimately display. i can read the file and traverse the objects in it such as layers, layouts, blocks, etc. that was the easy part. vectorization and rendering seems to be a whole different ball of wax. instead of attempting to write by own vectorizer, as i mentioned, i抦 using your wingdi renderer you provided, and used the singledoc project as a basis for understanding what to do. basically, i抦 passing the hwnd handle of the picturebox to the routine that renders so that it updates the 揥indowhwnd?property, just like it抯 done in the singledoc project. my sample program compiles fine and seems to do run through all the code during runtime. however, the key thing isn抰 working ?the drawing never displays in the picturebox. attached is my sample code. can you help me get this running? thanks.
attached files
resolved via e-mail.
just curious, would you mind sharing how this was accomplished, as i could be going down this track in the near future, and would like to know what was involved.
thanx in advance.
jason


所有的时间均为北京时间。 现在的时间是 10:56 AM.