Split 3D Polyline and retain Object Data

Split 3D Polyline and retain Object Data

mhughesUYP4M
Participant Participant
1,926 Views
6 Replies
Message 1 of 7

Split 3D Polyline and retain Object Data

mhughesUYP4M
Participant
Participant

As the title says, i'm trying to split 3d polylines and retain the attached object data in the new two entities. This is in Civil 3D but i hear you MAP 3D guys have more experience with Object Data.

 

TRIM, BREAK, BREAKATPOINT etc. all remove the object data. I found an old .lsp that works for 2d polylines but not 3d polylines (https://forums.autodesk.com/t5/autocad-map-3d-forum/break-polyline-with-object-data/m-p/5154993#M42...

 

Is there any other way of achieving this? Current work arounds are to copy the entity, trim the lines and use COPY_OD to reinstate the object data.

0 Likes
Accepted solutions (1)
1,927 Views
6 Replies
Replies (6)
Message 2 of 7

ChicagoLooper
Mentor
Mentor

Hi @mhughesUYP4M 

Unfortunately you can't do that. Once you 'break'  that line, it's no longer the SAME object and this will cause the object data to go bye-bye. Splitting or breaking will ERASE the Object Data Table and its contents.

 

If you are simply breaking a line into two or three pieces (you didn't specify the number of objects after the split), then the simplest way is to copy the line then split it into multiple pieces. Don't delete the original line--save it on a new Layer then turn OFF or FREEZE this layer. Next, click ATTACH TO OBJECTS so the new line pieces will have an OBJECT DATA TABLE. (Change your Workspace from Civil3D to Planning and Analysis.)

 

The newly attached OD Table will be a data 'placeholder' which you can fill in at the Properties Palette. Select each line individually then plug-in (overwrite) the appropriate values at bottom of the Properties Palette under the OD. 

 

1001.png

Chicagolooper

EESignature

0 Likes
Message 3 of 7

O_Eckmann
Mentor
Mentor
Accepted solution

Hi @mhughesUYP4M ,

 

I've made a little modification in this lisp to take into account 3D Poly

 

Olivier

Olivier Eckmann

EESignature

Message 4 of 7

mhughesUYP4M
Participant
Participant

@O_Eckmann 

You're a star, that works great.

 

I really should invest some time in learning to code

0 Likes
Message 5 of 7

braudpat
Mentor
Mentor

Hello @O_Eckmann 

 

The original routine "MAPCOUP" has been written a long time ago by Gilles CHANTEAU !

 

The Health, Bye, Patrice (The Old French EE Froggy)

 

PS: Happy to see your NEW Pseudo "O_Eckmann" !

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


0 Likes
Message 6 of 7

braudpat
Mentor
Mentor

Hello @O_Eckmann 

 

The routine cuts 2D Plines (not curved / not splined - Heavy 2D Plines) keeping XDatas & ODs

The routine cuts 3D Plines (even splined) keeping XDatas & ODs

 

Please is it possible to improve it yet a little bit ??

 

Thanks, The Health, Bye, Patrice

 

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


0 Likes
Message 7 of 7

CADaSchtroumpf
Advisor
Advisor

My version to cut a 3DPoly while keeping these ODs and these multiple Records if present.

0 Likes