pBe Posted November 17, 2011 Posted November 17, 2011 would you guys think the OP would settle for window selection? Quote
ReMark Posted November 17, 2011 Posted November 17, 2011 I'm not sure what he would settle for. There seems to be a slight disconnect between what he wants and what we think he wants. Maybe if he gave us a "before" and "after" picture that might help. At least we will know if the line segment stays or gets erased. Maybe we will even find out if the circle/ellipse is really part of the equation or just a drawing aid that has no real bearing on his request. Quote
nalsur8 Posted November 17, 2011 Author Posted November 17, 2011 Why did you uploaded the same image once again ? I can't get your point of view , so finally do you mean that you want to select CIRCLE or ELLIPSE and a line and after that cut the piece of the selected line which is inside the circle/ellipse area ? the main issue is, how to break the line with user pick the line (pls ignore the ELLIPSE yellow color, its for indicator for user can pick any point inside the ELLIPSE) than break the LINE (only LINE no other object) and keep it LINE there (or draw again the line from 2 breaked point) ....nalsur8 Quote
nalsur8 Posted November 17, 2011 Author Posted November 17, 2011 I believe the ellipse is just an indication where the OP wants to pick, its not really there at all yes pBe, you are right actually ellipse is not there.. ...nalsur8 Quote
nalsur8 Posted November 17, 2011 Author Posted November 17, 2011 If so , the use of break command would solve the issue without any code . Am I right ? yes you also right, but its not efficient for user to pick 2 time to break the line ....nalsur8 Quote
nalsur8 Posted November 17, 2011 Author Posted November 17, 2011 Yes something like that.. a fuzz value you might say. which you already suggested a while back.or write a code to search the two nearest intersection emanating from the point selected then break the line on those two intersection.. I think its easy enough yes that's, search nearest intersec from selected than break it .....nalsur8 Quote
ReMark Posted November 17, 2011 Posted November 17, 2011 While you say above that the routine should use the nearest intersection(s) I think you might end up with unexpected results on rare occasions. But if that's what you want I'm sure someone here can show you how to do it. Good luck. Quote
nalsur8 Posted November 17, 2011 Author Posted November 17, 2011 would you guys think the OP would settle for window selection? not that way.. I'm not sure what he would settle for. There seems to be a slight disconnect between what he wants and what we think he wants. Maybe if he gave us a "before" and "after" picture that might help. At least we will know if the line segment stays or gets erased. Maybe we will even find out if the circle/ellipse is really part of the equation or just a drawing aid that has no real bearing on his request. i think the picture i was paste is more clear, only ignore the ELLIPSE, just think only LINE ......nalsur8 Quote
ReMark Posted November 17, 2011 Posted November 17, 2011 OK...we'll ignore the ellipse that you put in your picture. I got it now. Is it clear? Crystal. Quote
pBe Posted November 17, 2011 Posted November 17, 2011 not that way.. Oh well. just thought it might be easier. otherwise its brute force determining what other entities intersect with the line. since you dont have any other object selected as a break reference like Lee's code ;; Finds all Intersections between obj1 & obj2 ;; Args: obj1,obj2 If i can find time, i'll write one.. OK...we'll ignore the ellipse that you put in your picture. I got it now. Is it clear? Crystal. Quote
nalsur8 Posted November 17, 2011 Author Posted November 17, 2011 Oh well. just thought it might be easier. otherwise its brute force determining what other entities intersect with the line. since you dont have any other object selected as a break reference like Lee's code ;; Finds all Intersections between obj1 & obj2 ;; Args: obj1,obj2 If i can find time, i'll write one.. the conclusion is.. i think is impossible i think.... ok i'll find other way to solve my problem, maybe i use selection windows what was you say it.. yes... windows select, i'll try to find here similiar code or you got it? Quote
ReMark Posted November 17, 2011 Posted November 17, 2011 I'm "thinking" of breaking a line in two places but retaining all geometry. Can you guess what two places the line will be broken in? I've give you a few of helpful(?) hints. The line is a "line" or a "polyline". The line/polyline may or may not be horizontal, vertical or at an angle. The line/polyline may or may not have anything crossing it like another line/polyline, circle, ellipse, or polygon. The line/polyline is one unit long. A unit can be a millimeter, a meter, a kilometer, an inch, a foot, a mile, a furlong, fathom, parsec or any other unit of distance. Where am I breaking the line? Can anyone here write a lisp routine that will do that? Quote
pBe Posted November 17, 2011 Posted November 17, 2011 the conclusion is.. i think is impossible i think....ok i'll find other way to solve my problem, maybe i use selection windows what was you say it.. yes... windows select, i'll try to find here similiar code or you got it? I didnt say its imposible really. Entsel... Vla-get-bioundingbox...... Select objects within 'mn 'mx Find the two nearest intersection from point ['Intersectwith / getClosestPointTo / (cadr (etnsel))] Break the line using from the derive points.... One Select.. two breaks... EDIT: and NO i havent wrote it yet Quote
ReMark Posted November 17, 2011 Posted November 17, 2011 Jeez pBe what's taking so long? I've got a deadline to meet! Really...just kidding. Quote
pBe Posted November 17, 2011 Posted November 17, 2011 Jeez pBe what's taking so long? I've got a deadline to meet! Really...just kidding. ... I would like to think that the OP can handle it. given the pseudo code. Quote
ReMark Posted November 17, 2011 Posted November 17, 2011 I trust that with the information you have already provided he will be smart enough to figure it out from there. Thanks for your help. Quote
pBe Posted November 17, 2011 Posted November 17, 2011 I trust that with the information you have already provided he will be smart enough to figure it out from there. Thanks for your help. NP Cheers Quote
alanjt Posted November 17, 2011 Posted November 17, 2011 http://www.theswamp.org/index.php?topic=10370.0 Quote
nalsur8 Posted November 18, 2011 Author Posted November 18, 2011 at the end.. solve problem Thank your everybody.. to help me ........nalsur8 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.