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.

Warning when trying to Export to DWG or DXF with Duplicate Layer Names

Started by drgroen, December 11, 2012, 02:37:20 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

drgroen

Bug fix request:

DCAD 22 (and previous) hangs when multiple layers have the same name and you try to do an export to DWG or DXF.

It would be good to have the program check for unique layer names when it starts to export.  It could issue a warning
"Warning:  Layers ___ and ___ have the same name.
  Layer names must be unique for Exporting.
  Change Layer names and Re-Export"

Then it could exit the Export function and not hang.

Thanks.

drgroen

magic

Hi drgroen,

I'd second that. However, you can't have more layers with the same name. DesignCAD warns you off, if you try.
It's a kind of magic!




drgroen

Hi Magic,

You're right that DC (at least V22) prevents you from entering the same name for different layers.

However, SOMEHOW I have a couple files that have the same layer name for multiple layers in them. 

Possibly from an older version that didn't prevent you from doing that....
Or maybe one of the layer name exporting and importing macros I remember playing with a long time ago...

I haven't needed to do much exporting in the past, but a current project that I'm working on will require it.  I may have to write a macro to check for duplicate names and then have it call Export if all is well.

Dave

Dr PR

Dave,

Could the files with multiple layers with the same name have come from file imports? I seem to recall a problem with this in the past where import files had layer names longer than DesignCAD could use, so they were truncated. This created multiple layers with the same name. Later versions of DesignCAD allow much longer layer names.

In any case the program should check for this during file import (if it doesn't already) to be sure that no two layers have the same name.

Phil
DesignCAD user since 1987

drgroen

Phil,

I'm pretty sure that these were not imported, but rather generated in-house.

Dave

MarkX

Maybe the export routine could offer to generate unique names?

Mark