Jump to content

Locking cursor to z-value '0' when snapping to 3D points


Recommended Posts

Apparently you can draw 2D lines in Microstation and even snap to 3D points while still keeping your cursor to x,y,0.

 

They "lock" the cursor to z-value '0'.

 

Is this possible in AutoCAD?

Link to comment
Share on other sites

Okay - thank you - that has helped, however, the cursor now doesn't snap to anything that isn't on level 0. So, is there a way in which it could still snap to 3D points whilst remaining in 2D? It may sound odd, but like I said, this is something they apparently do in Microstation, so of course AutoCAD must be able to do the same ;-)

Link to comment
Share on other sites

It should still snap to non zero elevation points, it just won't extract the elevation. Are you working with extruded objects?

Link to comment
Share on other sites

No, not really, these are 3D objects (some inserted and some created in AutoCAD). I did just try it with an extruded object and it only snaps to the points in 0, not the extruded part.

Link to comment
Share on other sites

No, not really, these are 3D objects (some inserted and some created in AutoCAD). I did just try it with an extruded object and it only snaps to the points in 0, not the extruded part.

 

Ehh, little out of my league. I work in civil 3d, which has 3d objects, but they dont' function the same as regular ones.

I fear this may be a situation where you have to just toggle the variable.

 

You could use this as a OSnapZ toggle:

(defun c:test (/) (setvar 'OSNAPZ (abs (1- (getvar 'OSNAPZ)))) (princ))

Link to comment
Share on other sites

Thanks, I will try that - you have helped a lot!!

 

No problem. If you do decide to use the command, you can easily change the command name by replacing "test" with whatever you like. I'd pick something short.

If you assign this to a button, be sure to put an apostrophe ' in front of the command so it can be executed transparently.

Link to comment
Share on other sites

If alanjt's solution doesn't do it for you, then try this option on the drafting tab of your OPTIONS.

 

Same effect. All three deal with the OSNAPZ system variable.

Link to comment
Share on other sites

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