Jump to content

Recommended Posts

Posted

When working in 3D I can obtain the 3D (slope) distance between any 3D points.

The results are the slope distance, delta X, delta Y, delta Z, angle in X-Y plane and angle from X-Y plane. What's missing is the 2D distance between the two points.

I vaguely remember someone once telling me there is a way to get that 2D distance, but I can't seem to find a reference anywhere about it.

 

Is it possible to get the 2D distance between two 3D points? There is enough information there to calculate it.

Posted

i expect there is a clever lisp somewhere, but if you draw a line between the two points and then List it, the length in the current UCS (2D length) is given as well as the 3D Length, amongst other info. :D

Posted

Thanks Eldon.

 

I've just got round to working that one out myself, but you were quicker. But drawing a line, listing it and then deleting it is a bit over the top just to get the information displayed which is actually there, somewhere.

 

I have a VBA macro which does the calculation and displays the results in a message box, so I have no problem doing it. We work with a company who just have AutoCAD 2011 without VBA and my contact there has asked for my help with the problem.

Posted

Interesting. When I did a LIST on a line drawn in 3D between two different elevations I got this:

 

LINE Layer: "0"

Space: Model space

Handle = 3aa

from point, X= 20.8057 Y= 17.9927 Z= 1.0000

to point, X= 20.8137 Y= 28.5582 Z= 3.0000

In Current UCS, Length = 10.5654, Angle in XY Plane = 90

3D Length = 10.7531, Angle from XY Plane = 11

Delta X = 0.0080, Delta Y = 10.5654, Delta Z = 2.0000

Posted

Okay, we have the solution :)

 

It's governed by a System Variable "OSNAPZ"

 

osnapz=0 --> 3D-Distances

osnapz=1 --> 2D-Distances

 

 

You can have the 2D distance OR the 3D distance, but not both. 8)

I believe the default value is osnapz = 0.

 

But it works a treat and is exactly what was needed here.

 

Thanks guys.

Posted

You can use .xy filter on the second point.

 

Dist, osnap to endpoint, type .xy, osnap endpoint of other end, finally osnap to the first endpoint to use the same z value.

Posted

Isn't that what the very first dimension is from the distance command? eg:

 

Command: di

DIST

Specify first point:

Specify second point or [Multiple points]:

Distance = 16'-7 15/32", Angle in XY Plane = 32, Angle from XY Plane = 12

Delta X = 13'-9 9/32", Delta Y = 8'-7 15/16", Delta Z = 3'-4 3/4"

Posted
Isn't that what the very first dimension is from the distance command? eg:

 

Command: di

DIST

Specify first point:

Specify second point or [Multiple points]:

Distance = 16'-7 15/32", Angle in XY Plane = 32, Angle from XY Plane = 12

Delta X = 13'-9 9/32", Delta Y = 8'-7 15/16", Delta Z = 3'-4 3/4"

 

Only if OSNAPZ is set to 1, I keep it set to 0 so I use filters.

Posted

I just pull a tape on the fly (using linear dimension) since it cannot see 3D if the ucs is set to plan/top/world

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