CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 2393

CAD tip CAD tip # 6506:

Question CAD 
 %  platform  category 
Q - question

How to isolate a xref layer?

A - answer The LAYISO command does not support selection of entities embedded in blocks or xrefs. So you cannot use it to isolate (hide other) layers which are part of an external reference drawing.

By principle, it is not possible to show a single layer from an xref and hide (switch off) all other drawing layers (including the layer where the xref is inserted). By switching off (freezing) the xref insertion layer, you'll switch off the whole xref, regardless of the visibility of its individual layers.

Nevertheless, as a limited solution for this functionality (assumes an xref inserted in the layer 0, not switched off), you can use the following LISP utility - the "LIX" command (save it to the file lix.lsp and load it with APPLOAD):

(defun C:LIX ( / entlay)
 (setq entlay(cdr(assoc 8 (entget(car(nentsel "Select an Xref-object to isolate: "))))))
 (if (vl-string-search "|" entlay)
  (command "._-layer" "_s" "0" "_off" "*" "_n" "_on" entlay "")
  (princ "\nThis is not an Xref!")
100% *  CAD 
27.1.2009    26744×  

See also:
Tip 8552:Running AutoCAD without the graphics window (console mode).
Tip 7503:Autodesk 3ds Max keyboard shortcuts.
Tip 4010:Quick guide to Autodesk DWF Viewer.
Tip 1734:How to label an area in AutoCAD LT (or isolate layer, or dim arc length...)?

Back   All CAD Tips

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info

Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.