If you’re looking for a clear, step‑by‑step guide to using the XCLIP shortcut in AutoCAD, this article explains what the command does, how to use it, why it sometimes fails, alternatives, troubleshooting, and practical tips for everyday CAD workflows.
What is the XCLIP shortcut?
The XCLIP command in AutoCAD (type XCLIP at the command prompt) crops the display of a selected External reference (XREF) or block reference to a specified clip boundary. It does not delete or permanently alter the geometry in the referenced file or block — it only changes the displayed area in the host drawing.
Common uses:
- Focus on a portion of a large linked drawing (XREF) without editing the source file.
- Hide extraneous elements from a block reference without exploding it.
- Create neat print/plot views without modifying the original geometry.
How to use XCLIP — Step by step
Below are simple, beginner-friendly instructions. You can perform these steps directly from the command line or using the ribbon.
Create a rectangular clip
- Type XCLIP and press Enter.
- When prompted, select the external reference or block you want to crop (click it in the drawing).
- At the command line options, choose New (if prompted).
- Choose Rectangular.
- Specify the two opposite corner points of the rectangle (click two corners).
- The reference is now cropped to the rectangle you defined.
Create a polygonal clip
- Type XCLIP, press Enter.
- Select the target XREF or block reference.
- Choose New, then Polygonal.
- Pick points sequentially to define the polygon vertices. Press Enter or close the polygon to finish.
- The display is clipped to the polygon.
Use an existing polyline as a clip boundary
- Draw or identify a closed polyline in the host drawing.
- Type XCLIP, press Enter.
- Select the XREF or block, choose New → Select polyline (or follow the prompt to “Select boundary based on object”).
- Select the closed polyline as the clip boundary.
Edit, add, or remove clip boundaries
- To Edit a clip boundary: Select the clipped reference and use grips on the clip frame, or rerun XCLIP and choose options such as New, Add, Delete, or Replace (depending on the command line options in your AutoCAD version).
- To Remove a clip entirely: Type XCLIP, select the clipped reference, and choose Delete (or run XCLIP and follow the delete option).
Notes:
- Use the Invert option (if available) to display the area outside the boundary instead of inside.
- If you prefer command-line only, use the hyphened version if available (for scripts):
-XCLIP.
Options and important settings
- XCLIPFRAME: Controls whether the clip boundary frame is displayed and/or plotted. (Common values allow you to hide the frame, show it but not plot it, or show and plot it — change it in the command line by typing XCLIPFRAME and entering a value.)
- Rectangular vs Polygonal: Rectangular is quick for orthogonal crops; polygonal allows irregular boundaries that match complex shapes.
- Invert Clip: Use this to hide the inside and display the outside of the boundary.
- Clip management: You can Add multiple clip boundaries to a single reference to combine visible areas or Delete specific clip regions.
- Using polylines: Closed polylines are handy because they are editable and can be reused as clipping boundaries.
Why XCLIP sometimes doesn’t work — common problems and fixes
Problem: The clip frame is not visible.
- Fix: Check XCLIPFRAME value and set it to display frames; zoom extents or select the reference to reveal grips.
Problem: Clipping appears to do nothing for a block or nested reference.
- Fix: The reference may be a nested block or Dynamic block. Use REFEDIT (for XREFs) or BEDIT/REFEDIT for blocks to edit or apply clipping at the correct level. Alternatively, clip the block instance rather than the nested object or edit the source drawing.
Problem: The clipped area still plots or prints even though it is hidden.
- Fix: Verify XCLIPFRAME plotting behavior and ensure the clip is not set to plot the frame. If geometry outside the clip still prints, you may need to remove or trim geometry in the source drawing or use WIPEOUT if you need a plotted blank area.
Problem: Clip boundary disappears after reloading or reattaching the XREF.
- Fix: Ensure the clip is saved in the host drawing. For XREFs, consider applying the clip in the host drawing rather than binding it. If you bind the XREF, the clip may behave differently; reapply the clip if necessary.
Problem: Cannot clip an image or PDF.
- Fix: Use IMAGECLIP (for images) or use the PDFCLIP or CLIP command appropriate for your object type. XCLIP is for XREFs and block references, not Raster image clipping.
Alternatives to XCLIP and when to use them
- WIPEOUT: Creates a white polygon that hides objects beneath it in the same drawing. Use when you need a plotted blank area (but it is not linked to an XREF).
- IMAGECLIP / CLIP: Use these for clipping images, OLE objects, or certain external files rather than XREFs.
- VPCLIP: Clip a viewport in a layout to control what is visible in that viewport.
- REFEDIT / BEDIT: Edit the source XREF or block directly if you need permanent changes to geometry.
- Trim/Erase in source drawing: If you need to permanently remove geometry from the reference, edit the original file instead of clipping.
Practical tips and best practices
- Remember that XCLIP only changes display; it does not remove geometry from the source. Use REFEDIT or edit the source if you need permanent changes.
- Keep a neat organization: create named clipping polylines on a nonprinting layer so they can be reused.
- If multiple people work on the same project, document whether clips are applied in the host drawing or in the referenced drawing to avoid confusion.
- Use Invert sparingly — it’s powerful for showing surroundings but can cause unexpected printing if not checked.
- If a clipped XREF misbehaves after binding, consider reapplying the clip in the bound drawing or use external references consistently.
- Use keyboard input for precise clip coordinates when accuracy is critical (type coordinates or object snaps instead of free clicks).
FAQ
How do I hide or show the clipping frame?
Change the XCLIPFRAME system variable. Adjust the value to control whether the frame is displayed and whether it plots. You can type XCLIPFRAME at the command line and enter the preferred setting.
Can I make an XCLIP permanent so the geometry outside the clip is deleted?
No — XCLIP only affects display. To permanently remove geometry, open and edit the source drawing (XREF or block definition) or use trimming/erasing in the original file, then save it.
Can XCLIP be applied to a nested block inside a block or XREF?
You can clip block references, but nested objects may require REFEDIT (for XREFs) or BEDIT (for blocks) to edit the clip or to reposition the target geometry. If the nested structure prevents clipping, edit at the level where the geometry is defined.
Why does my clipped XREF still show objects outside the clip when I plot?
Check XCLIPFRAME plotting settings and ensure there are no overlapping objects on other layers in the host drawing. For a plotted blank area, consider WIPEOUT if you need to mask content for printing.
How do I invert the clipped area so the outside is visible instead of the inside?
When using XCLIP, look for the Invert option (or choose the invert setting when prompted). This displays everything outside the defined boundary and hides the inside.
Can I use existing polylines or shapes as clip boundaries?
Yes. You can use a closed polyline or other closed object as the clip boundary by selecting it when prompted during the XCLIP command.
What command should I use to clip images or PDFs?
Use IMAGECLIP (or the specific CLIP command appropriate to the object type) for raster images and PDFs. XCLIP is specifically for XREFs and block references.
How do I manage multiple clip regions on one XREF?
Use the Add option within XCLIP (if available) to create multiple clip boundaries. You can later delete or edit individual clip regions. If your AutoCAD version lacks these options in the GUI, rerun XCLIP and use command-line options to manage clipsets.
