CAD Forum
Cesky English Deutsch
Login:
 Visitors: 1283 

WWW server of the XANADU company (formerly: CAD Studio) Become a fan of CADforum on Facebook

CAD tip CAD tip # 4416:

Question CAD 
 %  platform  category 
Q - question

How to get rid of spaces in AutoCAD layer names?

A - answer Although space characters are perfectly legal in AutoCAD layer names (as long as EXTNAMES is on), there may be older add-on utilities which do not properly handle layers with spaces.

To quickly replace spaces in layer names use the following VBA macro (use e.g. the _VBASTMT command to run it):

For Each objLayer In ThisDrawing.Layers : objLayer.Name=Replace(objLayer.Name, " ", "_") : Next
ACAD2000ACAD2004ACAD2006
100% *  CAD 
13.5.2005    7138x  
Comments   Tell a friend
Share tip: Digg it! Del.icio.us Facebook Technorati StumbleUpon
applies to: AutoCAD 2000 · AutoCAD 2004 · AutoCAD 2006 ·

See also:
Tip 7193:How to create DWG layers from a list in CSV/Excel?
Tip 7164:The NLS files required to convert the text entities...
Tip 7145:Replace points with blocks.
Tip 7128:Some layers are listed with light blue background. Why?
Tip 7020:How to copy selected layers from another DWG file?


Back   All CAD Tips All CAD tips&tricks

What for is the Autodesk Raster Design Object Enabler? « | » Which variable controls the grouping of Zoom operations for Undo?

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. 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   



Featuring:
Generate unfolded 2D profiles from DTM surfaces in Map 3D 2006
Map3Dprof More info


Please use these tips at your own risk.
XANADU (CAD Studio) is not responsible for possible problems that may occur as a result of using any of these tips.