PDuMont Posted September 18, 2017 Posted September 18, 2017 Hello, Odd behavior concerning errno variable and UCS command: (setvar 'errno 0) Using "UCS" command, rotate UCS to OBject, selecting nothing: (getvar 'errno) ...returns 2, as expected. But with lisp: (setvar 'errno 0) (command "ucs" "ob" pause) Select nothing, and errno returns 0 still. Any idea why one would act as expected and the other not? Quote
Jef! Posted September 19, 2017 Posted September 19, 2017 in 2015 both set errno to 2 Command: (setvar 'errno 0)0 Command: (command "ucs" "ob" pause) No object found nil Command: (getvar 'errno) 2 weird... Quote
PDuMont Posted September 20, 2017 Author Posted September 20, 2017 Thanks for checking han and Jef! I am on 2016, and it consistently returns 2 when issuing command, and 0 through lisp. Quote
hanhphuc Posted September 20, 2017 Posted September 20, 2017 Thanks for checking han and Jef!I am on 2016, and it consistently returns 2 when issuing command, and 0 through lisp. if this is a bug in different versions (yours 2016 Jef's 2015 ,2007) etc.. not sure entsel? Quote
PDuMont Posted September 20, 2017 Author Posted September 20, 2017 I found setting ucs by entity to be somewhat unpredictable. For instance, setting ucs to a line, the ucs will be different depending where on that line you pick. Gets even more unpredictable on a polyline or solid. Quote
Jef! Posted September 21, 2017 Posted September 21, 2017 Thanks for checking han and Jef! You're welcome! I found setting ucs by entity to be somewhat unpredictable. I havn't study UCS "object" in depth, but my feeling is that (well, for the machine) it is probably more arbitrary than unpredictable. (like the orientation of the X and Y axes of an OCS, or what part of a 3DSolid will keep the original handle/ename after you slice it in 2, etc). Quote
PDuMont Posted September 25, 2017 Author Posted September 25, 2017 Hey Jef! You are probably right on that. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.