Say we have a line that goes from 0,0,0 to 10,0,10.
How can i trim or break that line (or snap another line to it) at a specific z coord? say at elev 5.51?
Hello Antoniovinci
Superb / Excellent !
Bye, Pat
Patrice BRAUD
Have you actually tried this? One can assume you forgot to enter F for First Point after selecting the object. Even then AutoCAD returns this.
Command: BREAK
Select object: (pick polyline)
Specify second break point or [First point]: F
Specify first break point: 10,0,5.51
Specify second break point: @
At least one break point must be on polyline.*Invalid*
User48 wrote:Have you actually tried this?
Yessir, here's my F2 output:
Command: l LINE Specify first point: 0,0
Specify next point or [Undo]: 10,0,10
Specify next point or [Undo]:
Command: break
Select object: L
Specify first break point: 10,0,5.51
Specify second break point: @
Command:
By the way, the _F option is involved when you pick an object.
User48 wrote:the OP wants to break 3DPOLYLINES
It doesn't matter, sir: the above technique works with 3Dpolys too, both with _L and with _F (as right stated by you).
should the first break point be 5.51,0,5.51? Your input gives the break at 7.7405,0,7.7405 for me
Thanks
dave
Can you provide a complete working script? This content based on your posts does break the 3DPOLY but it breaks it at the wrong elevation. Please provide a full script to demonstrate breaking it at elevation 5.51.
-------------------
_3DPOLY
0,0,0
10,0,10
_BREAK
_L
10,0,5.51
@
-------------------
My fault, gentlemen, I wish to apologize for that, 'cause the point 10,0,5.51 does not belong to the line 0,0,0-10,0,10 indeed.
I don't see an easy solution, I mean without using trigonometry.
On the other hand, the _SLICE command (by Z=5.51 plane) works only with solids, not with simple lines.
Sorry again...
Hello
Sorry for my answer, I thought that Antonio has the right solution !?
Maybe I have a "stupid/bad" solution which needs a few commands !
So a Lisp/VLisp programm will be very useful ...
Draw a SOLID (Box in fact) : Height = 5.51 - which "includes the line" ...
Explode the SOLID, so you get 3DFaces ...
Draw a Line from (.xy) at beginning (Snap=END) of your line (0,0,0)
when asking for Z; click with (Snap=NEA) at the Face (which is at Z=5.51)
then draw the line with Ortho ...
I think that the Intersection of your first line and "my" line is the point you were looking for !?
Bye, Pat
Patrice BRAUD
If you were to consider third party software, MapWorks Base contains two tools to handle this. First is 3dPoly Mark Elevations which marks all points of a specified elevation along a selection set of 3dPolylines. Second (and most important in this case) is 3dPoly Break At Elevation which breaks a selected 3dPoly at a specified elevation along a segment (also preserves Extended Entity Data on the newly created polyline).