AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

trim or break a 3dpolyline at a specific z coord

14 REPLIES 14
Reply
Message 1 of 15
shallowhead
722 Views, 14 Replies

trim or break a 3dpolyline at a specific z coord

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?

 

 

14 REPLIES 14
Message 2 of 15
antoniovinci
in reply to: shallowhead

1] command _BREAK

2] select object

3] type 10,0,5.51

4] type @

 

Message 3 of 15
braudpat
in reply to: antoniovinci

 

Hello Antoniovinci

 

Superb / Excellent !

 

Bye, Pat

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 4 of 15
User48
in reply to: antoniovinci

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*

Message 5 of 15
antoniovinci
in reply to: User48


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.
 
Message 6 of 15
shallowhead
in reply to: antoniovinci

Yes thanks. However, I was hoping for there was a lisp or another command (similar to LENGTHEN) where you could set the z coord at 5.51 and then just pick the line and it would trim it at that elevation. I have many lines all at different positions that form contours of a top of bank and bottom of ditch. Given those elevations I need to create another contour line in between them at a given z elevation.
Message 7 of 15
shallowhead
in reply to: User48

I have not tried it. However, I was hoping for there was a lisp or another
command (similar to LENGTHEN) where you could set the z coord at 5.51 and
then just pick the line and it would trim it at that elevation. I have many
lines all at different positions that form contours of a top of bank and
bottom of ditch. Given those elevations I need to create another contour
line in between them at a given z elevation.

--
Kevin Trasorras
CADworks
813-996-9775
ktcadd@gmail.com
Message 8 of 15
User48
in reply to: antoniovinci

So it works with LINE objects, but the OP wants to break 3DPOLYLINES.

Message 9 of 15
antoniovinci
in reply to: User48


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

Message 10 of 15
parkr4st
in reply to: shallowhead

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

 

 

Message 11 of 15
Murph_Map
in reply to: parkr4st


@parkr4st wrote:

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

 

 


That's the difference between 2006 and 2010 & up, Relative and absolute coordinates on input from the keyboard.

Murph
Supporting the troops daily.
Message 12 of 15
User48
in reply to: antoniovinci

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
@

-------------------

Message 13 of 15
antoniovinci
in reply to: User48

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...

 

 

Message 14 of 15
braudpat
in reply to: antoniovinci

 

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 ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 15 of 15
TerryDotson
in reply to: shallowhead

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost