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.

Exporting a large 3D Drawing to DWG,DXF

Started by MarkJesse, March 09, 2011, 03:21:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkJesse

Hi all,
We have a problem that when you try to export a large drawing say over 4,000 KB as a DXF, DWG it fails around 76%.  and Designcad V20 and v19 stop working. Although export a job under 3,000 KB works.

We then tried to export the drawing out in v15 and it works fine.

Do you know the answer, or has the program changed since v15 in exporting.

Yours Mark

Bob P

What operating system?  How much memory?

Adrian 2.0

Hi Mark.
I'm running 20.1 on 2 machines, a 64bit Vista & a 64 bit Windows 7 machine.
I just tried exporting 2 larger 3D files - one a 15.6Mb & the other a 17.5Mb file - they both exported fine.

Not quite true actually, the larger file has quite a few 3d trees embedded & I had left some of them as blocks - all my blocks were misplaced when I re-imported the file to check.
I think your problem is not so much the size of the file but something in the file that Autocad does not like.
As an example, I have some custom hatches (stone patterns I found on this forum) & if I try to export them as hatches DCad crashes - I need to change the setting to export as line entities & it works fine.

FYI attached is screenshot of the file - it is a work in progress, I don't have any windows, handrails & furniture in it yet - it'll get much bigger before it's finished!

Lar

It may have something to do with the way your layers are named in dcad. You can use lots of special characters in dcad's layer names that you can't in acad, such as spaces, ampersand (&), comma. I think acad only allows the dash and underscore (my info may be outdated here). I tend to use spaces and commas in my dcad layer names and on my system such names usually come across as long strange looking. I do remember it causing bigger problem once or twice. I think dcad converts spaces to dashes during the conversion but I'm not sure about other characters.

Lar

MarkJesse

Hi thanks for your comments. You see sent over a 3D drawing, that was under 3KB and it worked fine, we then copied the drawing three times to make the drawing much larger in size, so everything was the same but much larger, layers, line work everything but the size.  This is when it went wrong. I was wondering is it because it can't cope with exporting a large drawing out or is there another reason.

Yours Mark

Rob S


What operating system, and how much RAM do you have

How much shows as free in process manager?
User since forever

Dr PR

Mark,

You should read posts in this forum topic.

http://forum.designcad.com/index.php?topic=3420.30

You should be VERY careful how you construct the trees. They potentially have tens or hundreds of thousands of elements (if you model each needle in a conifer) that will increase file size enormously, especially if you duplicate many copies. I have found that simple 2D planar surfaces work just fine for leaves and needles in 3D drawings.

****

DXF files will be MANY times as large as the DesignCAD file. This will cause problems if memory is limited. In addition, the DXF file description is possibly the most incompetently written standard in history! It is a marvel of ambiguity and contradiction! No two programmers have ever interpreted it the same, so there are very significant differences between the way different programs import DXFs. Avoid DXFs if at all possible!

DWGs are vastly superior to DXFs, but are about 1.5 times as large as a DesignCAD file.

Have you experimented with different versions of DXF and DWG files? I have had best results with R12, even though it is an ancient format. Also, there are two different methods of representing surfaces, rectangular and polygon grids. Some programs work best with one or the other.

****

You didn't say how much RAM you have in your machines. DesignCAD DOES NOT use hard drive space for virtual memory. You must have enough actual RAM in the machine to load the operating system, DesignCAD, and to hold the entire drawing, a backup copy, and for additional temporary working space for the program, including the export files.

My Vista 64 machine has 4 Gbytes RAM and the default Vista installation used 2.2 Gbytes of it, leaving only 1.8 Gbytes for everything else!
DesignCAD user since 1987

MarkJesse

Thanks for the comments, I will find out how much ram
each of the computers we use have. But why has DesignCad been set up that way of using ram.

Dr PR

Mark,

It is an evolutionary problem. DesignCAD has been around since the time that a megabyte of RAM was a huge amount of memory. Back then the signed "long" variable (32 bits) was large enough to contain any possible address (2 gigabytes). I suspect the code is still riddled with "longs" that should be replaced with "doubles" (64 bits).

If a 64-bit version of the program is ever produced it would be a relatively simple process to search the code for "long" and replace it with "double." However a simple substitution can cause additional problems if the code is written to depend upon a "long" overflow. In addition, library routines must be rewritten to handle calls that pass the larger variables. In many cases these libraries were provided by other vendors. It is a major rewrite.

The job really requires looking at each instance of "long" and how it is used in the code to verify if a direct substitution will work, or if the particular code segment must be rewritten. But that will take time and money, and both are in short supply. DesignCAD isn't the only program facing this challenge.
DesignCAD user since 1987

edgar

Quote from: Dr PR on March 21, 2011, 01:54:00 PM
"longs" that should be replaced with "doubles" (64 bits)

Not to be pedantic, but I think "double"s is a floating point data type; what you really want is size_t which resolves to the largest unsigned  integer type on the platform.
-Ed

Dr PR

edgar,

You are right. The variable "double" wasn't a good choice since it is floating point. What is needed is a 64-bit integer for addresses. Unfortunately, the length of a "word" or "long" is inconsistent from machine to machine, but an unsigned 64 bit "long" is what it needed.
DesignCAD user since 1987