Open DC2 files with DC Max 23

Started by jym_ing, March 09, 2014, 11:06:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jym_ing

Hello friends of DC...
I'm using Design Cad since 1990 (version 7.0).
I'm also using a home made software which creates complicated geometries composed of lines and generates ASCII files in DC2 format (in 2D) or DC3 (in 3D).
For years, I was opening the DC2 files with DC version 7, save it into DW2 and then open the file with latest version of DC to complete the drawing.
But nowadays, Windows 8 does not allow to use version 7.
When I open the DC2 files with DC Max, it opens in 3D, which results in a waste of time .

Is there a way to force Max 23 to open directly DC2 files in 2D?
Thanks in advance

JYM

samdavo

#1
Quote from: jym_ing on March 09, 2014, 11:06:52 PM
Hello friends of DC...
a. I'm using Design Cad since 1990 (version 7.0).
b. I'm also using a home made software which creates complicated geometries composed of lines and generates ASCII files in DC2 format (in 2D) or DC3 (in 3D).
c. For years, I was opening the DC2 files with DC version 7, save it into DW2 and then open the file with latest version of DC to complete the drawing.
d. But nowadays, Windows 8 does not allow to use version 7.
e. When I open the DC2 files with DC Max, it opens in 3D, which results in a waste of time .
f) Is there a way to force Max 23 to open directly DC2 files in 2D?
Thanks in advance
JYM
so Jym,
not sure what you mean by "it opens in 3D"?  or rather
what happens when you click the 2D icon?  Doesn't that solve it?

And your comment that you use software other than DesignCAD ... I can't even guess - but well done lol.   I take it that can be 3D (?), i.e. z varies as well as x and y?

I doubt it will help (maybe?) but you can even "flattenZ" a 3D drwg - there's a standard macro in DT's toolkit.
And that will set z = 0 for any and all points/entities (as selected if you prefer).
But since you have z=0 from the getgo, I can't see why you would have a problem (?)
cheers
sam
(this post is intended just to get some ideas into the thread, however irrelevant)

PS You can even save a 3D drawing as a 2D version (2 cents)

prl

Quote from: jym_ing on March 09, 2014, 11:06:52 PM
Is there a way to force Max 23 to open directly DC2 files in 2D?

If you have dc2 files, wow, that is version 4. 

I'm not having problems.  I can double click a dc2 file and DesignCAD 23 will open it as a 2d drawing in 2d mode.  Same if I drag and drop a dc2 file onto DesignCAD23. Same if I use file open etc within DC.

Can you make a small sample dc2 file and attach it, one that opens in your DC23 in 3d mode?

magic

Hi Jym,

I get the same result as prl.

I created a 2D drawing in DesignCAD v. 23 and saved it as a .dc2 drawing.

When I opened it in DesignCAD 3D MAX v. 23, it opened in 2D mode.

I don't know if there is something in the header that controls the mode, but I'd check there to see, if your home grown software places a code of sorts there.

Also, do the same test I did to see, if you get the same result.

Best of luck.
It's a kind of magic!




prl

Quote from: magic on March 10, 2014, 12:58:10 AM
I don't know if there is something in the header that controls the mode, but I'd check there to see, if your home grown software places a code of sorts there.

Magic makes a good point,  the first few lines of your dc2 file should look something like this:

0.0000 0.0000 25559.0508 16622.8301 0
41 6 0 0 0 0
100.000000 16.000000 1.000000
3 1 0 4 0 4 0 0 0 2 3 3 0 0 3
64.000000 80.000000 0.000000 8.000000 1.000000
0.000000 1.000000 1.0 1.0 1.0
DCAD3
.
.
.

jym_ing

Dear all,
Thank you for your replies.
It's quite strange:
A DC2 file done with Max23 opens in a 2D window in Max23.
Same file done with Version 7 opens in 3D windows in Max23.

Attached are 2 files (a triangle), ex1_23 is done with Max23, ex2_07 is done with version 7 (extension changed in txt).
I guess it's a wrong parameter in the header, but I cannot remember what are these parameters.
Any idea??

Many thanks
JYM

prl

Quote from: jym_ing on March 10, 2014, 02:01:32 AM
Any idea??

From the ex2_07.txt file, an original dc2 file will not have the last two numbers on the first line.  But if they are there, they should both be zero.  The 7.00 should be zero.

468.0000 296.0000 661.0000 505.0000 0 0 7.00
41 6 0 0 0 0
8.000000 8.000000 2.000000
3 1 0 2 0 1 1 0 11 1 0 0 0 1 1
64.000000 1200.000000 0.000000 0 32.000000
0 1.0 1.0 1.0 1.0
SIMPLEX2.VFN




jym_ing

Quote from: prl on March 10, 2014, 02:10:47 AM
Quote from: jym_ing on March 10, 2014, 02:01:32 AM
Any idea??

From the ex2_07.txt file, an original dc2 file will not have the last two numbers on the first line.  But if they are there, they should both be zero.  The 7.00 should be zero.

468.0000 296.0000 661.0000 505.0000 0 0 7.00
41 6 0 0 0 0
8.000000 8.000000 2.000000
3 1 0 2 0 1 1 0 11 1 0 0 0 1 1
64.000000 1200.000000 0.000000 0 32.000000
0 1.0 1.0 1.0 1.0
SIMPLEX2.VFN

I tried, but it still opens in 3D windows with max23 (it was the same with max21).

prl

Quote from: jym_ing on March 10, 2014, 02:26:51 AM
I tried, but it still opens in 3D windows with max23 (it was the same with max21).

I change the 7.00 to 0 and it worked fine.  Both fixed and your original file are in the zip file since this forum software doesn't know how to deal with dc2 files.

jym_ing

Quote from: prl on March 10, 2014, 02:33:17 AM
Quote from: jym_ing on March 10, 2014, 02:26:51 AM
I tried, but it still opens in 3D windows with max23 (it was the same with max21).

I change the 7.00 to 0 and it worked fine.  Both fixed and your original file are in the zip file since this forum software doesn't know how to deal with dc2 files.

Great find! It works for me as well.
Thank you very much Prl...

prl

Quote from: jym_ing on March 10, 2014, 02:36:55 AM
Thank you very much Prl...

Good.

Can you remind me, is version 7 DOS or Windows, and 2d or 2d/3d?   If it is Windows, can you snap a graphic of the About page, if possible?  You can block out your name and serial number.  Recently we've been trying to compile a version history.

jym_ing

Quote from: prl on March 10, 2014, 03:01:49 AM
Quote from: jym_ing on March 10, 2014, 02:36:55 AM
Thank you very much Prl...

Good.

Can you remind me, is version 7 DOS or Windows, and 2d or 2d/3d?   If it is Windows, can you snap a graphic of the About page, if possible?  You can block out your name and serial number.  Recently we've been trying to compile a version history.

No problem.
I'm french; I purchased this version in Paris (Cogistem).
Then I got DC 3D in various versions (but they are no longer installed in my computer.
Regards

JYM

jym_ing

Quote from: jym_ing on March 10, 2014, 03:10:50 AM
Quote from: prl on March 10, 2014, 03:01:49 AM
Quote from: jym_ing on March 10, 2014, 02:36:55 AM
Thank you very much Prl...

Good.

Can you remind me, is version 7 DOS or Windows, and 2d or 2d/3d?   If it is Windows, can you snap a graphic of the About page, if possible?  You can block out your name and serial number.  Recently we've been trying to compile a version history.

This version is a release (1996).
I should have the floppy disks of original versions of 2D / 3D, I will check for you.

No problem.
I'm french; I purchased this version in Paris (Cogistem).
Then I got DC 3D in various versions (but they are no longer installed in my computer.
Regards

JYM

Bob P

An alternative:
Instead of editing the header, rename the file with a .dc3 extension.  It will then probably open in V23 in 3D.  Save the front view of the file as a 2D drawing (or run the flatten macro).

jym_ing

Quote from: Bob P on March 10, 2014, 07:53:39 AM
An alternative:
Instead of editing the header, rename the file with a .dc3 extension.  It will then probably open in V23 in 3D.  Save the front view of the file as a 2D drawing (or run the flatten macro).

I have written a home-made software that creates all kinds of geometries in 2D / 3D for my business.
Then, it writes DXF / DC2 / DC3 files.
I had just to change one line as suggested by Prl, and now, all my DC2 files open in 2D with Max23.