高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|