hibba Posted December 9, 2013 Posted December 9, 2013 (edited) Hello Friends,, anyone can help me? i want to take distance between different points in a line means if i draw one line and divide it into 5 part (a,b,c,d & e) how can i take distance between points "ab" and "cd" expect "bc" and "de". di command with multiple give me the total of all points. Edited December 9, 2013 by hibba Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 (edited) You want to know the distance between each set of points? a-b, b-c, c-d, and d-e? Addendum: The original poster required a way of summing picked distances non-consecutively. Distance a-b + distance c-d = sum. For anyone else who is interested in a solution see post #30 and download Kent Cooper's lisp routine that I named SumDistNon.lsp as that will save you a heap of reading. Verification of the routine's ability to handle the task is documented in post #26. Regards, ReMark Edited December 9, 2013 by ReMark Quote
hibba Posted December 9, 2013 Author Posted December 9, 2013 (edited) no.. i want to know the distance between a-b and c-d only but DI command with multiple give me total distance a-b b-c c-d and d-e Edited December 9, 2013 by hibba Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 Then measure them separately using the DISTANCE or MEA command. Quote
sparkyuk Posted December 9, 2013 Posted December 9, 2013 He could just click on point A and then point E to get the total distance, so I think he means if he clicks on each point one after the other he will get a running total at the end and i do not think it can be done, correct me if im wrong Quote
hibba Posted December 9, 2013 Author Posted December 9, 2013 Then measure them separately using the DISTANCE or MEA command. but it is impossible to get the sum of a-b and c-d points with DISTANCE and MEA command.. Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 I think what you are looking for is covered here: http://www.afralisp.net/autolisp/tutorials/the-eval-function.php Quote
hibba Posted December 9, 2013 Author Posted December 9, 2013 He could just click on point A and then point E to get the total distance, so I think he means if he clicks on each point one after the other he will get a running total at the end and i do not think it can be done, correct me if im wrong i know it is possible with lsp file.. i have an idea in my mind but i dont have knowledge how to create lsp file... let me explain.. if i press (short key of lsp file) then take distance between a-b and c-d and at the end i will get the total distance after finishing the command Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 Did you bother to go to the first link I posted? Probably not. Another lisp routine can be found here in post #20 by Tharwat. Try reading it. http://www.cadtutor.net/forum/showthread.php?52168-need-quick-dimension-lisp/page2&highlight=THdim Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 Here's one more called TotalDist.lsp by Richard Sandgren. http://home.comcast.net/~medeziner/total-distance.html Now you have three ways to accomplish the task. Pick one. Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 ok, let me check... You do that. My suggestion: Use the TotalDist.lsp routine. Quote
hibba Posted December 9, 2013 Author Posted December 9, 2013 You do that. My suggestion: Use the TotalDist.lsp routine. i used this lsp but it works same like DI with multiple.. it give me the total of "a to e" even i selected a-b and d-e separately Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 Well your wrong, it does work, I know because I tested it. So, either your "points" aren't really points (nodes) or you don't know how to use the routine. Did you read the instructions at the website where you found the program? Quote
hibba Posted December 9, 2013 Author Posted December 9, 2013 actually i am new user on this forum and i dont know the rules of this forum.. sorry for that. ok i explain it mathametically.. if one line is 4000mm each distance between a-b/b-c/c-d/d-e is equal to 1000mm.. i need the total distance of "a-b' + "c-d" 1000+1000=2000 even when i use DI command with "M" its give me 3000mm Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 Not sure what rules you are referring to. In any event..... My answer remains the same. Your best bet is to use the TotalDist.lsp routine. Are your points "true" points (i.e. - nodes that can be snapped to)? Yes or no? Quote
hibba Posted December 9, 2013 Author Posted December 9, 2013 (edited) it is continues line and i divide in 4 parts with DIVIDE command to explain my task if distance between a-b = x and c-d = y so i need x + y Edited December 9, 2013 by hibba Quote
ReMark Posted December 9, 2013 Posted December 9, 2013 Use the DI command and measure them separately. Add the distances yourself. Unfortunately most distance measuring lisp routines are expecting the user to not skip over a set a points but rather pick points consecutively. Quote
hibba Posted December 9, 2013 Author Posted December 9, 2013 check this i used this command in autocad and here is the prove that it is not match with my task.... i already explained i want X+Y only... it should be 2000mm 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.