Hi, I need LISP for my work so i can do this. From attachment "not cuted bad version how we get it" is version1 and I need it to make "Cut good version how we want it" make it version2.
So I need layer SERVICEBOX to be cutted in whole drawing to the layer Building navigated by layer Michror which is crossing that Building layer.
Is this possible, can someone help me please? This is very needed for my work. ❤️ 🙏
I'm confused. By "cut" do you mean "move"? Or "trim"? If you mean "trim," the Layer called "SERVICEBOX" in the "good" drawing is not what has been trimmed to the "Building" outline, but rather the "Michrorohr" Layer [which is spelled differently in your Message than in the drawings]. That is why I suspect "cut" means "move," because that is what has been done with things on the "SERVICEBOX" Layer, as it has been renamed from one drawing to the other -- there is no "SERVICEBOX" Layer in the "bad" drawing, to have things on it moved [or trimmed?]. And in the "good" drawing, two of the Blocks near the middle do not have their insertion points on the "Building" Layer outline, as I think is your intent. Are they not located where they should be, or is there some other reason they are where they are? Or am I misunderstanding your description? Is there someone more fluent in English who can write a description for you?
Still true from before:
And in the "good" drawing, two of the Blocks near the middle do not have their insertion points on the "Building" Layer outline, as I think is your intent. Are they not located where they should be, or is there some other reason they are where they are?
Also, some of the Blocks are connected with two Lines and a Point to the Trench path, but some by only one Line, making it very difficult to imagine how a routine could figure out what to do. Those with a Point and a second Line all seem to end up with those at the insertion point of the Block on the Building perimeter, and the Line is of zero length -- is that really what you want?
Just stab in the dark...
Have you tried command, or ACET Express Tool : CLIPIT... It should clip blocks with some curve and I suppose LWPOLYLINE should be very acceptable...
Still true from before:
Still true from before:
And in the "good" drawing, two of the Blocks near the middle do not have their insertion points on the "Building" Layer outline, as I think is your intent. Are they not located where they should be, or is there some other reason they are where they are?
If those two are treated as it seems you want the rest treated [i.e. Trim the Line that crosses the Building perimeter, and Move the Block so its insertion point is at the new Trimmed endpoint], then you would end up with this:
If there is to be any hope of figuring out how to instruct a routine to do what you want, it will be necessary to have consistent criteria that it can use to decide [for example, among other things] whether or not to do that. It occurred to me that maybe those should not be Moved because they have only one Line connecting to the Trench line, with no bend and no Point object. But that can't be it, because there is another like that at the top, and unlike these two, that one is Moved in your "good" drawing.
I need Lisp that will move and cut layer Servicebox(block) through layer which is connected to it in this case Microrohr(line), to the dot where it cross the line on layer Building(polyline).
This would help me alot in life, I just move it manualy for years at work.:/
What makes the two in the middle [-50 and -60 endings] different, so that they should not be changed as all the rest are?
Can't find what you're looking for? Ask the community or share your knowledge.