How to Clip objects in AutoCAD










There is a tool named as CLIP in ArcGIS which cut out a piece of one feature class using one or more of the features in another feature class as a cookie cutter. This is particularly useful for creating a new feature class as study area or area of interest (AOI) that contains a geographic subset of the features in another, larger feature class.

It is often needed to CLIP all the objects contained completely inside a polygon to a new drawing. The type of the objects may vary from simple objects like polylines, lines, circles, text to complex objects like splines, arcs, hatches, blocks etc.


Clip Objects in Autocad


Since the release of AutoCAD 2008, a new command EXPORTLAYOUT was introduced to export all the objects in all the viewports of the layout to a separate drawing.
I am writing this article because most of the CAD users are not aware about the power of this magical command of Autocad and use TRIM command to trim all the objects one by one which are outside of the desired polygon. It is hectic and time consuming operation to trim the objects one by one. It becomes more complex when trimming composite objects like HATCH or BLOCK or in the case when there are thousands of the polylines having thousands of vertices.

Let me elaborate the workflow here:
  • Open the drawing and create the polygon, circle or rectangle you want to crop out.
  • Copy the rectangle or polygon with a base point as 0, 0, 0 and paste in to an empty layout.


  • .        Create a viewport of the Polygon shape you just copied in Layout by command VPORTS and enter O for object selection. Select the Polygon object. Zoom the viewport to Polygon extents.


  •      Execute the EXPORTLAYOUT command. Browse the Output Drawing path and name. The output drawing will contain the objects which were needed to be clip or crop out. 



Comments

  1. Thank you very much! Very informative!

    ReplyDelete
  2. Welldone Dear
    Thank you for sharing

    ReplyDelete
  3. This is really helpful. Thank alot

    ReplyDelete
  4. Thanks Sir....very helpfull...

    ReplyDelete
  5. I use this command and my tip is to create the viewport in PS at a 1:1 scale, then the exported dwg file is already to true size and no scaling is needed.

    ReplyDelete

Post a Comment

Popular posts from this blog

SpaTools: Import Lidar Point Cloud (LAS/LAZ) files into AutoCAD

SpaTools: Extract Topographic Profile From Contours In AutoCAD

Creating Contour Maps in ArcGIS and Conversion to AutoCAD drawing

SpaTools: Toolbar with all tools

Gunter Chain / Surveyor's Chain