CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedHow to get elevation between two contours

 Post Reply Post Reply Page  12>
Author
ABHAYPAGRUT View Drop Down
Newbie
Newbie


Joined: 02.Jul.2013
Location: India
Using: Autocad 2007
Status: Offline
Points: 5
Direct Link To This Post Topic: How to get elevation between two contours
    Posted: 02.Jul.2013 at 05:58
I Want to take spot levels bwt two contours in autocad 2006
abhaypagrut
Back to Top
heinsite View Drop Down
Senior Member
Senior Member


Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 640
Direct Link To This Post Posted: 02.Jul.2013 at 06:50
This kind of question really makes me smile... and makes me happy I was learning how to do this sort of thing long before personal computers came along or anything even remotely called AutoCAD.

Here's how to think of contours:  they are points of equal elevation or the shoreline of water risen to that level.  And when you look at contours it's helpful to think of water in another way:  which way would it travel if it were a raindrop.

The answer in the second case is that a raindrop will always move the shortest distance or perpendicular to contour lines.  So the way to interpolate between contours is to draw a line between them that is mostly perpendicular to each.  Then you simply measure the length of that line and do the math to determine how to subdivide the distance.  If all you want to do is find an elevation half way between two contour lines you only need to look for a point halfway between them.

It's not rocket science.

Dave.
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD Certified Professional
Autodesk Expert Elite
Back to Top
ABHAYPAGRUT View Drop Down
Newbie
Newbie


Joined: 02.Jul.2013
Location: India
Using: Autocad 2007
Status: Offline
Points: 5
Direct Link To This Post Posted: 02.Jul.2013 at 08:09
Thanks , this is simple math i know, but i want result in autocad by single click between two polylines representing contours having elevations.
abhaypagrut
Back to Top
heinsite View Drop Down
Senior Member
Senior Member


Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 640
Direct Link To This Post Posted: 02.Jul.2013 at 10:10
AutoCAD isn't built to do that sort of thing.  You might be able to write some kind of complex LISP routine to do it, but if you're going to work with contours, or more specifically digital terrain surfaces, you're going to need to use something like Civil 3D.

Dave.
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD Certified Professional
Autodesk Expert Elite
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 02.Jul.2013 at 12:19
Are you working in 2D or 3D?

Your profile says AutoCAD 2007 but your question references 2006.  Why?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
JSC View Drop Down
Newbie
Newbie


Joined: 19.Mar.2013
Location: United States
Using: Civil 3D
Status: Offline
Points: 17
Direct Link To This Post Posted: 02.Jul.2013 at 14:02
If your'e using Civil 3d (even the older version) and have (or can create) surfaces, the process is conceptually simple. But it can be cumbersome to carry out (as you should expect with just about any advanced Civil 3D function). Are you using Civil 3D?
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 686
Direct Link To This Post Posted: 02.Jul.2013 at 15:05
>>> ...i want result in autocad by single click between two polylines representing contours having elevations.
 
Try Midpoint-between-two-points [M2P] object snap if you have it, using Nearest object snap on each of the two contours to get the points to find the midpoint between.  If your version doesn't have M2P object snap [I don't remember when that was introduced], there are many routines out there built to do the equivalent -- this is the one I made years ago:
 
(defun m2 (/ pt1 pt2 osm) ; Midway between 2 points snap
  (setq
    pt1 (getpoint "\nFirst point: ")
    pt2 (getpoint pt1 "\nSecond point: ")
    osm (getvar 'osmode)
  ); end setq
  (setvar 'osmode 0)
  (command (mapcar '/ (mapcar '+ pt1 pt2) '(2 2 2)))
  (setvar 'osmode osm)
  (princ)
); end defun
 
Use it by typing (m2) [including the parentheses] or put that into a toolbar button or something.  You can apply Nearest or any other Osnap mode on the two contours when it's asking for points.  You can use it inside something like a Point or Insert command to place something at the midpoint between, including halfway between in the Z direction.
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 686
Direct Link To This Post Posted: 02.Jul.2013 at 15:13
Or now I'm wondering whether I misunderstood.  If you want to pick a single point, which won't necessarily be halfway between two contours in the XY direction, and you want the elevation at the same proportion of the distance in the Z direction as the point is between the two contours in the XY direction, that can certainly be done, but it's more complicated.  A routine would need to "reach out" somehow to find the adjacent contours, such as possibly with increasingly larger crossing windows until it finds two, and do some calculations based on the nearest points on them.  Does that sound like what you're after?
Back to Top
ABHAYPAGRUT View Drop Down
Newbie
Newbie


Joined: 02.Jul.2013
Location: India
Using: Autocad 2007
Status: Offline
Points: 5
Direct Link To This Post Posted: 02.Jul.2013 at 18:33
working in 3 D
i am working in both the version of AUTOCAD at different places at home and at office. iam just Beginner to Autocad.
abhaypagrut
Back to Top
ABHAYPAGRUT View Drop Down
Newbie
Newbie


Joined: 02.Jul.2013
Location: India
Using: Autocad 2007
Status: Offline
Points: 5
Direct Link To This Post Posted: 02.Jul.2013 at 18:37
thanks, You are using Code to explain my Query. Please Elaborate it.

abhaypagrut
Back to Top

Related CAD tips:


 Post Reply Post Reply Page  12>
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,098 seconds.