DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Layer Names for drawings to be converted to Acad

Started by ktk, February 06, 2007, 12:55:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ktk

I have drawings with layer names

#3 D-Latch Plate

Would these be legal layer names in Acad?

Bob P

My recollection is that you can't use spaces in ACAD layer names.

DrollTroll

#2
A&#!CAD 2007 allows letters, digits, minus sign, underscore, and dollar sign. No spaces, by default, although I may have seen an option to permit spaces in layer names. Earlier versions were probably similar in their limitations.

The pound sign/hash mark '#' is likely to be a problem.
25 years with DesignCAD

prl

Quote from: ktk on February 06, 2007, 12:55:20 PM

#3 D-Latch Plate

This layer name (with spaces) is okay in AutoCAD 2000 and up.   The following characters are not allowed in AutoCAD layer names or object names:

< > / \ " : ? * =  '

support

Regarding spaces, I would leave them out if possible. I have seen issues with imports and exports back and forth with AutoCAD where the layers had spaces or any non-text, non-numeric, character. Just a plain character string like: drywall3 would work better than: Drywall 3

prl

Here is something to keep in mind.  If your drawing has a layer named:  #3 D-Latch Plate it will import into an AutoCAD 2000 dwg depending on which version of DesignCAD you are using:


DesignCAD v 15 :  #3 D-Latch Plate will be changed to  #3_D-LATCH_PLATE

DesignCAD v 16 :  #3 D-Latch Plate will be changed to  #3_D-LATCH_PLATE

DesignCAD v 17 :  #3 D-Latch Plate will stay #3 D-Latch Plate


All these tests assume you are exporting to type 7 (AutoCAD 2000).

DrollTroll

It seems that AutoCAD 2000 and later have a system variable EXTNAMES which controls whether spaces are permitted.

To be absolutely certain, check with your AutoCAD-using client to see which version of Acad they are using and whether they typically have spaces in their layer names.
25 years with DesignCAD

Lar

Whatever a DWG conversion does, a DXF may be different. I export to acad via DWG but to many other programs I have to use DXF. I find it safe to use only letters, numbers, dash and underscore.

I also have a means of getting rid of those problem-for-other-cad characters from dcad layer names before exporting and putting them back afterwards but it involves 2 macro files and an external text editor's find and replace function and it generates 2 files and requires a good much user interaction. If you are interested I think I posted it on the Upperspace forum. I'll check when I have time and will  post a link here.

Lar

ktk

Thanks for the info:

I will just adopt a new layer nameing plan without spaces or special char.  It does not affect past drawings.

Keith