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

yang686526 2009-05-04 06:46 PM

【转帖】creating a new ucs
 
creating a new ucs
creating a new ucs
hi,
i want to ask for an ucs creation:
1. i created an ucs table record with name "testucs" and xdir = (1,0,-1) and ydir=(0,1,0);
2. i inserted it to the ucs table and after that i called oddbdatabase::setucsname() passing it as an argument.
i think this makes the record current ucs for the database.
3. finally when i tried to get the xdir by calling oddbdatabase::getucsxdir() the result was: xdir = (1,0,0);
so i thought that the last method would return the xdir of the current ucs
but maybe i'm wrong. have i to call manually the global function oddbsetucsxdir() to change the current ucs settings?
thanks in advance!
hotsouce
setucsname() should alter current ucsxdir and ucsydir. but currently this not the case due to dd bug.
for now you can use global functions to set the correct values.
sergey slezkin


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