Removing layer viewport overrides using VPLAYERIssueYou want to know if there is a way, from the AutoCAD command line, to remove layer overrides from viewports. Per-viewport layer overrides is a feature introduced in AutoCAD 2008 that allows you to apply layer property overrides for color, linetype, lineweight and plot style, and make objects on a layer display differently in different viewports without affecting the global layer properties. Typically, you remove viewport overrides using the Layer dialog or the right-click context menu on a viewport object, however there is no obvious way to perform this operation from the command line. SolutionThe VPLAYER command includes the hidden keyword option reMoveoverrides. You won't see this keyword in the list of options but if you enter M at the initial VPLAYER prompt, you'll get a sub-prompt of options to remove one or all types of layer property overrides. You can choose which layers these overrides should be removed from and in which viewports. This example shows removing all the viewport overrides from all the layers in the current viewport: 
This example shows removing only the color override from only Layer1 in all the viewports: 
Support – Terms of UseAUTODESK DOES NOT GUARANTEE THAT YOU WILL BE ABLE TO SUCCESSFULLY DOWNLOAD OR IMPLEMENT ANY SERVICE PACK OR WORKAROUND, OR ANY OF THE TIPS, TRICKS, EXAMPLES OR SUGGESTIONS OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENTS. TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS ARE SUBJECT TO CHANGE WITHOUT NOTICE TO YOU. AUTODESK PROVIDES TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL AUTODESK OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF DATA, OR LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, THAT MAY OCCUR AS A RESULT OF IMPLEMENTING ANY SERVICE PACK OR WORKAROUND, OR ANY SUGGESTION OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENT, EVEN IF AUTODESK OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |