• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

cut a segment of a line

  • Thread starter Thread starter Angelo2449
  • Start date Start date

Angelo2449

Guest
Hello everyone,
I would like to cut a segment of a line:
- design a horizontal line (linear)
- design two vertical lines that cross the horizontal line (ele1 ele2)

the segment to be cut, of > lined < , is between ele1 and ele2.
all proven solutions cut > lineardata < arbitrarily.
Thank you.
 
It is much easier to do
you find the two intersection points between lineadatagliare and ele1 and then line to cut and ele2 and generate the line between the two points
(inters function)
 
It is not clear to me why the question is placed in the lisp section for autocad, as everything is solved with the autocad commands.
I apologize in advance if I will be imprecise in some term of the autocad command line interface, but I don't have a subhandle. I'll go to memory.
I also apologize for the problem of any confusion between discourse Italian and autocad commands.

if you literally want to cut the inner part of a line, horizontal for example, that "beyond" two lines that intersect it, vertical for example, then the command "cut" is precisely the suitable tool, and its operation is well known.

if instead of your horizontal line that "shorts" the two vertical lines you want to keep "all", in particular the segment "inside", then I see more suitable the command "weak" (which in fact """"may"""" work as if it were a "cut".
the "weak" command has a particularity (¿cattivella?), it makes you select the object to break and then, only as option, allows you to select (type: p) the first point of the desired operation of " logical outbreak", and then asks you to select the second point, and the whole is speeded up if you already have the active and "intersection" osnap selected.
the result is that the original line now has become 3 consecutive lines, including the segment that, if I well understood the question, you wanted to have as distinct entities.

I hope I've been helpful.

p.s. I do not like the method suggested in the previous answer because, in addition to being slow (you have to use three or four commands), creates the (famigered) problem of the overlapping lines, and here the devil always puts his cursed tail.
 
It is not clear to me why the question is placed in the lisp section for autocad, as everything is solved with the autocad commands.
because angel2449 wants to do so through lisp; his posts have always been marked by this theme

small correction:
with the command breaks with point (it does not break) you do not have three consecutive lines because after having made the first interruption, in which you get two consecutive lines, the second execution does not work anymore breaking in one point, but becomes the normal break that interrupts the line from where you select the object to the point where you want to interrupt it. It is a well-known problem to make it work in the same way.www.cad3d.it/forum1/threads/comando-spezza-da-mouse-in-autocad-lt-2009.9225/
 
Last edited:
thanks massive, only now I have seen, from the historian of angel2449, that his discussions always point to the lisp.

Having regard to its record <<tutte le="" provate="" soluzioni="" tagliano=""> lineardatagliare < arbitrarily>> > I felt that the "p" option was neglected within the command breaks, because if you choose any point to select the object to be broken and then by the second click you already select the second point, results that seem arbitrary are out (but if you pay attention are not).

at this point I remain doubtful about the purpose: Want to cut or get the segment included?
if you have to cut it (=delete it) I would not see insurmountable problems, even according to the lisp, and also considering my very poor familiarity with the lisp.
if it must "conserve" it, and in this case the most logical way sees the use of breaks (resolved the problem of the "p" option immediately after the selection of the object to be broken and to the request of the "second point"), then who is practical of lisp should know how to proceed.

the main point now I think it consists in the clarification, by angel2449, of the exact description of the need that wants to solve.

I apologize for the verbosity, I threw myself ('temerariamente?) based on the experience of having met many autocad users who did not realize exactly how much could be obtained from the command breaks, and it seemed ('erroneously?) that its mention to the "arbitrary" looked like the doubts I had heard.

I wait for angel lamps2449.

thanks for the attention.</tutte>
 
Massive excuse, as I responded, you integrated indicating my mistake.

I predicted that I didn't have "subhand" autocad.
you have to do 2 "thickness" in 1 point, and so you get the three consecutive lines.

I apologize for the inaccuracy.
 
the main point now I think it consists in the clarification, by angel2449, of the exact description of the need that wants to solve.
the question is placed in the section "lisp per autocad".
goes from if what is required is to be carried out via lisp.
and, by experience, via lisp picking an existing entity at a precise point is more complicated to achieve the same objective in a different way.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top