Is any one interesting to please help me making this lisp
I have polyline closed polygon (in yellow), like on picture bellow and in the example file i attach. The shape of it can be different, this is only the example. I have a line on drawing which intersect the polygon (white line). i need that polygon to change its shape in intersection points A and B like on pictures. To trim the polygon and to add new line A to B in it. The white line must not be erased. Also if i choose some line for defining the UCS (red line) i need that line AB to be dimaligned like on picture and example file.
So the input data should be:
-pick polygon,
-pick white line,
-pick side from white line for triming the polygon,
But there is one thing and that really bothers me. I realize that my idea of drawing dimension lines in ucs which i got choosing magenta line is not a good solution. Because i dont know how will program choose UCS and thats why there are cases, where i got the dimension lines upside down.
....
I think the UCS could be manageable. Maybe little more complicated, but yes. But I guess it does not worth it. It could work more simple and probably better.
Btw Now remember, when you are selecting the object to trim (the main one) select that close to the corner (that one, where the future dims will cross each other).
.... I realize that I am engaged you with these last few days, and i am really grateful on that.
Thank you again
If so, let it show by the means the page offers you. Just close the thread as solved and give some kudo. Not just to me, to all people who helped you somehow. Even the suggestion you did not take, even that guy tried to help you.
The problem with text direction of dimension lines now are ok, but there is other problem which i didnt have it before.
As you can see the dimension lines are not in ucs of magenta line. One must be parallel and the other must be orthogonal to that line. So i think calling for that line is necessary. In first example i think its ok, or maybe the angle is pretty much similar so i cant see the difference (thats not the one on picture), but in this one like in picture its clearly visible.
And one more thing. I see that you make automaticaly position of dimension lines. Its ok but on my drawings i have many other lines and dimension lines, so i deliberately left that in previous lisp i send. I must put them somewhere on clean space.
As you can see the dimension lines are not in ucs of magenta line. One must be parallel and the other must be orthogonal to that line. So i think calling for that line is necessary. In first example i think its ok, or maybe the angle is pretty much similar so i cant see the difference (thats not the one on picture), but in this one like in picture its clearly visible.
And one more thing. I see that you make automaticaly position of dimension lines. Its ok but on my drawings i have many other lines and dimension lines, so i deliberately left that in previous lisp i send. I must put them somewhere on clean space.
Ok, I can see the issue. The difference is whether you cut just one corner, or two corners. But the fix is very simple. It's all the same, just little of thinking.
now the first one example work as the second yesterday 😞
It certainly does NOT to me. Post the dwg sample where is this happening. Please test more then one sample. If it goes wrong, focus on some envirnment variables you could have on (ORTHO, SNAP...).