CAD Forum
Cesky English Deutsch
Login:
 Visitors: 1271 

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

CAD tip CAD tip # 7193:

Question CAD 
 %  platform  category 
Q - question

How to create DWG layers from a list in CSV/Excel?

A - answer Using the free utility Xanadu CsvLayers you can automatically create (import) an arbitrary list of layers to your DWG drawing by reading in a text file with layer definitions.

You can create the layer list in Excel (CSV - comma-delimited values format), or type it in a text editor. The list can contain either the layer names only, or also their properties - color, linetype, lineweight, plot/noplot, visibility... Possible already existing layers will be redefined with the properties from the CSV file.

You can download the application CsvLayers from www.xanadu.cz/download

An example of the layer definition file:

  
;CsvLayers sample file
;Expected format:  
;LayerName[,Color#[,LineType[,NoPlot(0/1)[,Off(0/1)[,Freeze(0/1)[,LWeight#]]]]]]  
;  
MyHidden,4,Dashed,1,1,1,25  
YellowLayer,2,GAS  
Prague  
Ceske Budejovice  

Created layers

ACADADTACADMCivilMap
100% *  CAD 
29.1.2010    1190x  
Comments   Tell a friend
Share tip: Digg it! Del.icio.us Facebook Technorati StumbleUpon

See also:
Tip 7128:Some layers are listed with light blue background. Why?
Tip 7020:How to copy selected layers from another DWG file?
Tip 6982:Switching layers using keyboard shortcuts.
Tip 6724:Automatically generated picture-legend of drawing blocks.
Tip 6433:Force layer for selected commands (objects).


Back   All CAD Tips All CAD tips&tricks

How to restore AutoCAD messages hidden by checking "Ignore"? « | » How to increase the offset between MLeader text and underline?

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:
Automatic nesting of 2D parts on rectangular sheets in AutoCAD
AutoNEST 2008 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.