几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】adcurrentpixeltoworld in dwgdirec (http://www.dimcax.com/hust/showthread.php?t=15043)

yang686526 2009-05-04 03:41 PM

【转帖】adcurrentpixeltoworld in dwgdirec
 
adcurrentpixeltoworld in dwgdirect?
adcurrentpixeltoworld in dwgdirect?
hello,
in old library (viewkit) the adcurrentpixeltoworld function was available.
in odamfcapp is the example (onappendline), but it shows correctly x and y only (z is always 0).
this situation is not correct for e. g. leftview.
how can i get the same effect (like in old library) using the dwgdirect?
is this possible?
best regards
marcin
the method :appendline() is working properly. i read in a drawing with ucs of 1,-1,1 and used :appendline() to draw - the line was properly drawn and the transforms yeilded the proper coordinates - including the z value.
i *did* note, however, that if you use the rotatex/y/z buttons on the gui and then draw a line - that the line appears to "snap" into a different space than what was drawn. this is a tracking problem with the gui for those rotate buttons.
but in terms of replicating the behavior for adcurrentpixeltoworld () - the :appendline() method does that for you.


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