Hi everyone,
Could someone tell me how to set UCS with 3 points?
Set of points: pt1 (110353.0 -881.248 0.0) origin, pt2 (110453.0 -881.248 0.0) on X-axis, pt3 (110353.0 -781.248 0.0) on Y-axis.
I tried with (command "ucs" "3" pt1 pt2 pt3). The command line showed
"Coincident with first point
; error: Function cancelled"
Thank you.
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
Try
(setq pt1 '(110353.0 -881.248 0.0) pt2 '(110453.0 -881.248 0.0) pt3 '(110353.0 -781.248 0.0)) (command "ucs" "3" "_NONE" pt1 "_NONE" pt2 "_NONE" pt3)
Henrique
Note that your UCS is the same as WCS only moved to different origin...
(command "_.UCS" "_W") (command "_.UCS" "_M" "_none" '(110353.0 -881.248 0.0))
Kr., M.R.
@maikhanhmst wrote:
Many thanks Henrique.
Could you tell me what "_none" means in the command?
You're welcome, maikhanhmst.
The "_none" is the Object Snap Mode 'None'.
Wen we use Command calls with points as argument, we should use the 'none' to ensure that the point provided to the command is the desired point and not a point resultant from some other Object Snap Mode.
Or set a variable with the current OSMODE value, set OSMODE to 0, run the command, and set OSMODE to the stored value.ie
(setq osm (getvar 'OSMODE))
(setvar 'OSMODE 0)
(command "ucs" "3" pt1 pt2 pt3)
(setvar 'OSMODE osm)
Henrique