查看单个帖子
旧 2009-05-05, 11:20 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)