Levels Curvers

Levels Curvers

Anonymous
Not applicable
499 Views
3 Replies
Message 1 of 4

Levels Curvers

Anonymous
Not applicable

Hello Friends,

 

I have a file with topography that has the level curves spaced at 5m. I wanted to get a file space 30 meters, which means that I have to find a way to felete all lines that have height "X05,X15,X20 and X25".

Do you guy have any idea how I could do that ?

 

I am using AutoCAD 2012.

 

Thanks for any information. 

0 Likes
500 Views
3 Replies
Replies (3)
Message 2 of 4

BrianBenton
Collaborator
Collaborator

Can you share the file or a sketch or diagram of what it is you have and one of what you want to do? I'm not quite clear on what you are trying to accomplish

Brian C. Benton

bbenton@cad-a-blog.com
http://CAD-a-Blog.com
twitter.com/bcbenton
www.facebook.com/CADaBlog


0 Likes
Message 3 of 4

Kent1Cooper
Consultant
Consultant

If they are drawn at those elevations in 3D, that is, they have non-zero Z coordinates, it should be pretty easy with the use of a (rem) function to divide each one's elevation by 30, and if there's any remainder, eliminate it.  Is that the case?  Very quickly, in the case of LWPolylines with elevation [the (assoc 38) value], and assuming your drawing unit is one meter [minimally tested]:

(setq ss (ssget)) ; [or the routine could find them, if distinguishable in some way(s)]
(repeat (setq n (sslength ss))
  (setq lin (ssname ss (setq n (1- n))))
  (if (not (equal (rem (cdr (assoc 38 (entget lin))) 30.0) 0.0 1e-4))
    (entdel lin)
  )
)

If the drawing unit is something else, change the 30.0 accordingly, and if necessary, change the 1e-4 precision.

Kent Cooper, AIA
0 Likes
Message 4 of 4

ara_neresesian
Collaborator
Collaborator

HI

i think using "Quick select " will help you

 1.PNG

for each elevation just change z value 5 10 15 20 25 

but for sure your dwg file must be 3d file

otherwise you have to do it manually  .

please  attach your file for better solution . 

good luck