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

yang686526 2009-05-05 11:20 AM

【转帖】getcurrentucs
 
getcurrentucs
getcurrentucs
hi,
i am trying to get origin, xaxis, yaxis of current ucs. the getcurrenucs() function is specified as /*secret*/ and i am not supposed to use it as per documentation. is there any other way to get xaxis and yaxis of current ucs ?
thx.
ucs info can be accessed via database variables: ucsorg, ucsxdir, ucsydir.
note: oddbdatabase functions getucsorg() etc. return ucs info for model space, getpucsorg() etc. - for active paper space - so you need to look at tilemode first to decide which of them should be called.
another method - getsysvar() function takes care about it:
getsysvar("ucsorg") will return right ucs origin for active space (ms or ps).
sergey slezkin
thx vm sergey.
it works with getucsxdir() and getucsydir() after checking with model/paper space.


所有的时间均为北京时间。 现在的时间是 01:47 PM.