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.

V 17.2 won't export to DXF or DWG

Started by ggeppelt, June 25, 2008, 03:14:02 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

ggeppelt

When I try to export to a DWG or DXF, I get the error "S" is a dulicated layer.  Please renamethis layer."

this is a two layer drawing with the layer name of "Border" and "Main".

How do I make this work?

Mark Laing


Pearco

ggeppelt;

You have a lot of weird named layers from # 64 - 127. I deleted all of those names and it exported as one would expect it to.
Jim
User since ProDesign 1.5

prl

#3
Yes, you have lots of odd named layers with nothing on those layers.  See graphic.

To purge these, use the below basiccad routine:

'Program pln.d3m (purge layer names)

nlayers = 200

Sys(1027) = 4 'Yes/No MessageBox style
Message "This routine purges Named layers with no entities on those layers. Continue?"
if sys(1028) = 7 then
  end
end if

curlay = sys(3)
'purge layer names
sys(36) = 1
For i = 1 to nlayers
    sys(3)=i
    y = LAYER(i)
    if ODD(y)=0 then sys$(93) = ""
next i
sys(36) = 0

regen
sys(3) = curlay
sys(1) = 0
sys(80) = 0
Sys(1027) = 0

Message "Finished purging layer names."
 
end

ggeppelt

When I display layers, I only show one.  How did you display "lots of named layers with nothing on those layers"? 

I am a realy newbie - How do I get the Basicad program into Design Cad?

prl

#5
Quote from: ggeppelt on June 26, 2008, 08:43:53 AM
How did you display "lots of named layers with nothing on those layers"? 

I use a custom layer manager that lets me see and manage lots of layers.  You can do something similar by hitting the "L" key for the DesignCAD layer dialog, in the "Filter" pulldown, select "Named Layers only".  Now scroll the layer list. You'll see the odd names.  Note that only layers with the "*" before them have anything on them.


As to running the basiccad program, cut and paste the program (everything in blue) to an empty text file and save it as "pln.d3m".  Move this file to your
macros subdirectory, usually

C:\Program Files\IMSI\DesignCAD 3D Max 17\Sample Macros

To run the program, you can do it several ways.  One way is to press the space bar, and on the DesignCAD command line (top left under the menus) type "pln" and hit enter.

Pearco

ggeppelt;

Adding to what  prl posted, I only use a few layers so I have selected show all layers.
Jim
User since ProDesign 1.5

Rob S


Those seem like really weird layer names, possibly resulting from a corrupt file, or from a corrupt import.

Can't see how anyone would have set those up on purpose  ;D
User since forever

DrollTroll

Bear in mind that DesignCAD only accepts up to 40-character layer names.

If you import a drawing that has layer names that are longer than that, and only the last few characters are different, DesignCAD will truncate the layer names to the first 40 characters, possibly making the names identical.

For example, if your dwg file has layers
layer67890123456789012345678901234567890_floor
layer67890123456789012345678901234567890_walls
layer67890123456789012345678901234567890_roof

When you import it you end up with three layers named
layer67890123456789012345678901234567890

DesignCAD doesn't bat an eye at this until you try to export the drawing, and then gives the helpful "command failed" message.
25 years with DesignCAD