Cropping a surface using a polyline

Cropping a surface using a polyline

mabrman
Contributor Contributor
3,213 Views
8 Replies
Message 1 of 9

Cropping a surface using a polyline

mabrman
Contributor
Contributor

Howdy,

 

I'm working with a large surface (100,000+ points) and need to generate multiple surfaces representing small areas of this surface. My first thought was to create a surface that will represent the first clipped area, and paste in the large surface into it, then add boundary. When exporting this surface, it still contains ALL 100,000+ points from the large surface, making the resulting surface slow to work with, and large LandXML size when exporting, even though the clipped area represents 1-3% of the size of the big surface.

 

I've tried using CREATECROPSURFACE command (horrible experience using this command), but it's only able to clop using a rectangle. (Is there any way to use a polyline for this crop?)

 

How can I create a bound surface while removing all geometry including points outside of the polyline extents?

 

As a demo consider 5x5 point grid starting at 0,0 coordinates.

Create a surface using all 25 of these points. Then create a boundary as seen in yellow in the image below.

When showing points in the surface style (red below), it shows what I'd want the final surface to contain, however when exporting LandXML I still see all points outside of the boundary still present when reading the LandXML file as plaintext.

 

mabrman_0-1724319891161.png

 

I suppose for this demo the CREATECROPSURFACE command would work, since it's a perfect rectangle, however that's not the case.

 

I've developed some blender add-ons to help me do these tasks very efficiently, but when asked by my colleagues how to achieve this in Civil 3D, I'm at a loss.

 

Any ideas appreciated.


Matt

 

0 Likes
Accepted solutions (1)
3,214 Views
8 Replies
Replies (8)
Message 2 of 9

neilyj666
Mentor
Mentor
Accepted solution

Polygon works fine for me

neilyj666_0-1724324277749.png

 

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
Message 3 of 9

mabrman
Contributor
Contributor

I feel like a idiot, while I hate that you have to have the drawing saved to use this command, and then if you try to insert the surface into current drawing it doesn't work (didn't work for me), there wasn't any indication that  I can use a object or a polyline until I turned on DYNAMIC INPUT (where console line follows your cursor).

Attached video showing how console goes missing during command execution unless dynamic input is on:

 

(view in My Videos)

 

0 Likes
Message 4 of 9

neilyj666
Mentor
Mentor

I get the same as you when using the command line version. I have dynamic input off BUT I use the command from the ribbon rather than the command line and this gives the options. This seems like a bug - have you raised a support ticket?

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
Message 5 of 9

mabrman
Contributor
Contributor
I haven't raised a bug. Feels like a bug, but I'm thinking they see it as a feature of the UI system Civil 3D uses. Raising bugs in the past made me feel stupid for not knowing how to use the tools that "have been working for decades"... Feel free to bring it to their attention if you'd like.

Thank you for showing that polyline can be used. Appreciate the help
Message 6 of 9

neilyj666
Mentor
Mentor

I don't use the command line for most things and it works fine from the ribbon so the likely reply would be "not a bug but a user experience feature"

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
Message 7 of 9

teerawat.pSCHYQ
Advocate
Advocate

you said that you working with a large surface (100,000+ points), I guess you created large surface from that input and then using CREATCROPSURFACE command, It is horrible for you.  I suggest that you crated surface in small area first what you would like to work, but before definition input, you can using boundary type "DATA Clip" first and then definition data into your surface, then you will get small surface size that you can work smoothly.

 

0 Likes
Message 8 of 9

mabrman
Contributor
Contributor

Thank you for the suggestion. I believe that would work during the initial surface creation, however the surface was provided to me by a contractor, and so my starting point is the LandXML. Previously I made a rough guess about the number of points - it's 74,000, but still a headache to work with in Civil 3D. 

The CREATECROPSURFACE did solve the trick when running it from the toolbar instead of the command line though. 🙂

0 Likes
Message 9 of 9

teerawat.pSCHYQ
Advocate
Advocate

Ok, as you said that your surface are created by contractor, so then you can try like this, after import that LandXML file then you can make it to data shortcut for the large area, and then you can using that createcropsurface command to create a new file that maybe call in  working area what you need (my example just create a new file call "Large file_after create crop surface" and then you can make this file to data shortcut that easy to recreate surface and add to your file. as you see i just simple try this way, It will reduce your file size more than 75% like this below.

teerawatpSCHYQ_0-1724641803623.png

 

0 Likes