Trimming Polylines

I have a DXF file with polylines representing contour lines and a DWG file with polylines representing areas where these contour lines must be trimmed. Trimming polylines in CAD is EXTREMELY time consuming. It takes forever to trim multiple polylines and quite often CAD freezes.

Is there a way to perform this trimming process in GM faster than in CAD?
A step by step instruction would be highly appreciated.

Best Answer

  • kfroesekfroese Geotechnical Engineer Posts: 151
    Answer ✓
    I don't have similar DXF or DWG files handy to test this. However, I quickly whipped up a few lines and an area to check the ability to trim:
    1. Convert your DWG polylines to areas (if they aren't already).
    2. Select all the lines and all the areas.
    3. Right-click, select Crop/Combine/Split Functions, then Crop/Split Selected Line Features to Selected Area Features.
    4. When it prompts to Crop or Split, choose "Yes" to trim off the parts of the lines outside the area.

    This seems to work even when the lines are intersected by more than one area. Just make sure you selected all of the areas affecting a line or group of lines as this operation needs to be done in one go. I have no idea on the state of the 3D properties of the polylines once you export back out as I don't have a lot of experience with that aspect.
    Vusal

Answers

Sign In or Register to comment.