casualmasters Posted February 28, 2009 Posted February 28, 2009 hi people thank u very much for this great forum iam a new autocad beginner i barely draw in it but i know most of the commands i have a graduation project and it ihas a contour lines i should draw an intermediate lines between those contours as an average level(between every two lines i have to draw and intermediate one) could anyone help me in that i tried to draw it with spline but when i did offset it explodes to aloooooot of points which make modification really tough iam using autocad 2007 lay out.dwg Quote
Lee Mac Posted February 28, 2009 Posted February 28, 2009 Is there any chance you could upload a drawing in 2000 format please, so that those of us with earlier ACAD versions could have a stab at it please Quote
casualmasters Posted February 28, 2009 Author Posted February 28, 2009 iam sorry i forgot to save it in autocad 2000 as i said before iam a beginner i compressed it as it exceeds the forum upload limits lay out 2000.zip Quote
casualmasters Posted February 28, 2009 Author Posted February 28, 2009 yes why not as iam waitnig for your help Quote
CarlB Posted February 28, 2009 Posted February 28, 2009 With such wavy contours there is no way to know where the intermediate elevation levels would be. I would just eyeball it, draw a polyline midway between them. For more precision, you could draw several short lines from contour to contour, approx perpendicular. Then use these construction lines to draw the intermediate contour, snapping to "midpoint" of lines. Quote
Lee Mac Posted February 28, 2009 Posted February 28, 2009 yes why not as iam waitnig for your help Excuse me? Quote
eldon Posted February 28, 2009 Posted February 28, 2009 I have a graduation project This is why it is tough. The spline node points do not follow the contour lines, so the whole drawing seems fabricated and not a real situation. So a bit of hard work seems to be needed - unless Lee Mac is inspired Quote
casualmasters Posted February 28, 2009 Author Posted February 28, 2009 Excuse me? sorry i mean iam waitng for your help so i have to do anything you want to help me iam sorry again Quote
casualmasters Posted February 28, 2009 Author Posted February 28, 2009 This is why it is tough. The spline node points do not follow the contour lines, so the whole drawing seems fabricated and not a real situation. So a bit of hard work seems to be needed - unless Lee Mac is inspired hey man iam a beginner can you explain a little more for me Quote
eldon Posted February 28, 2009 Posted February 28, 2009 CarlB's advice seems to cover it nicely. Quote
casualmasters Posted February 28, 2009 Author Posted February 28, 2009 sorry i mean iam waitng for your helpso i have to do anything you want to help me iam sorry again iam sorry again mr lee english isn`t my native language so if my words have any thing bad for sure i don`t mean it Quote
Lee Mac Posted February 28, 2009 Posted February 28, 2009 I have made a LISP that will draw a pline equi-distant between two splines just doing finishing touches, should help somewhat... Quote
casualmasters Posted February 28, 2009 Author Posted February 28, 2009 hey guys it seems to be that the first problem is solved by the help of carlB and lee BUT now how can i edit the contour which i had drawn in between ...it explodes into alot of points after i make offset with an aproximated distance i have chosen between contour lines is thier any techniques to modify it easly Quote
Lee Mac Posted February 28, 2009 Posted February 28, 2009 Have made this... but it draws the correct pline, then loops - can't work out why (Have ctrl-c at the ready when testing...) (defun c:off (/ vLst oVar aEnt bEnt acy i pnt nrpnt) (vl-load-com) (setq vLst (list "CMDECHO" "OSMODE" "CLAYER") oVar (mapcar 'getvar vLst)) (setvar "CMDECHO" 0) (setvar "OSMODE" 0) (if (not (tblsearch "LAYER" "INTERMEDIATE")) (command "-layer" "M" "INTERMEDIATE" "_C" "15" "INTERMEDIATE" "") (setvar "CLAYER" "INTERMEDIATE")) (if (and (setq aEnt (car (entsel "\nSelect First Contour... ")) bEnt (car (entsel "\nSelect Second Contour..."))) (= "SPLINE" (cdadr (entget aEnt)) (cdadr (entget bEnt)))) (progn (setq acy 10.0 i 1.0) (command "_pline") (while (setq pnt (vlax-curve-GetPointAtDist aEnt (* i acy))) (setq nrpnt (vlax-curve-GetClosestPointTo bEnt pnt)) (command (polar pnt (angle pnt nrpnt) (/ (distance pnt nrpnt) 2))) (setq i (1+ i))) (command)) (princ "\nNo Spline Selected or this isn't a Spline...")) (mapcar 'setvar vLst oVar) (princ)) Any suggestions? - I have mulled over it and cannot work out why it keeps looping, there must be something so simple. Quote
CarlB Posted February 28, 2009 Posted February 28, 2009 -don't explode it -modify it by highlighting grips, click & drag them Quote
Lee Mac Posted February 28, 2009 Posted February 28, 2009 iam sorry again mr lee english isn`t my native language soif my words have any thing bad for sure i don`t mean it No worries, casualmasters - it just seemed a bit "forceful". But, don't worry, I just took it the wrong way Quote
casualmasters Posted February 28, 2009 Author Posted February 28, 2009 my problem is i can`t modify the offseted contour as it has alooooot of point and for this i can`t grip all this points all i need is after i make offset to the contour line by the aproximated distance i have chosen i want to modify it a little bit and for this i can`t Quote
eldon Posted February 28, 2009 Posted February 28, 2009 You are getting a lot of grip points by offsetting a spline. If you convert the splines to polylines by using FLATTEN from Express tools, you can then offset and you do not get so many grip points. Then use PEDIT and decurve the polyline. Drag the grip points to where you want them and then using PEDIT again, fit curve. Quote
casualmasters Posted February 28, 2009 Author Posted February 28, 2009 You are getting a lot of grip points by offsetting a spline. If you convert the splines to polylines by using FLATTEN from Express tools, you can then offset and you do not get so many grip points. Then use PEDIT and decurve the polyline. Drag the grip points to where you want them and then using PEDIT again, fit curve. would you please tell me how to do this Quote
Recommended Posts
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.