Jump to content

Recommended Posts

Posted

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?

Posted

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...

Posted

Thanks for checking han and Jef!

 

I am on 2016, and it consistently returns 2 when issuing command, and 0 through lisp.

Posted
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?

Posted

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.

Posted
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).

Posted

Hey Jef!

 

You are probably right on that.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...