Jump to content

Recommended Posts

Posted

would you guys think the OP would settle for window selection?

  • Replies 40
  • Created
  • Last Reply

Top Posters In This Topic

  • nalsur8

    12

  • ReMark

    11

  • pBe

    11

  • Tharwat

    4

Top Posters In This Topic

Posted Images

Posted

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.

Posted
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

Posted
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 :thumbsup:

actually ellipse is not there..

 

...nalsur8

Posted
If so , the use of break command would solve the issue without any code .

 

Am I right ? :unsure:

 

yes you also right,:( but its not efficient for user to pick 2 time to break the line

 

 

....nalsur8

Posted
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

Posted

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.

Posted
would you guys think the OP would settle for window selection?

 

not that way.. :nono: :)

 

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

Posted

OK...we'll ignore the ellipse that you put in your picture. I got it now. Is it clear? Crystal.

Posted
not that way.. :nono: :)

 

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.

 

 

:rofl:

Posted
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? :D

Posted

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?:lol:

 

Can anyone here write a lisp routine that will do that?:?

 

:P

Posted
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? :D

 

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 :)

Posted

Jeez pBe what's taking so long? I've got a deadline to meet!:o

 

Really...just kidding.:lol:

Posted
Jeez pBe what's taking so long? I've got a deadline to meet!:o

 

Really...just kidding.:lol:

 

:rofl:...

 

I would like to think that the OP can handle it. given the pseudo code. ;)

Posted

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.

Posted
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

Posted

at the end.. solve problem :D

 

Thank your everybody.. to help me

 

........nalsur8

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...