News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Structure of DC3 files

Started by jym_ing, April 18, 2015, 01:35:11 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jym_ing

Dear friends of DC,
I am doing 3D models, composed of lines, spheres, cylinders, cones, and some other solids. Until now, I was using macros that I wrote in Basic Cad; however, when there are many elements, let say over 10,000, it takes a lot of time to get the final model.
The fastest way to do that is to make a small program in VB or VC which directly writes the datas in ascii with a dc3 format.
I used to do that in the 80's with the first versions of DC3, but unfortunaterly I lost the manuals a long time ago, and cannot find anywhere the structure of the DC3 files.

Can someone help?
Many thanks

JYM
(using Design Cad Max 23)

prl

#1
Unless Dt has it, I don't know of a reference source for the DC3 structure.  You could reverse engineer it by saving some solids, spheres, lines, as DC3 and reading the file in a text editor.

Regarding generating entities using BasicCAD, this can be extremely fast provided you stop the screen activity while it is doing the routine.  Specifically, use sys(36)=2 at the beginning of the routine and then sys(36)=0 at the end and before you exit the basiccad routine have it regenerate the screen only once.


Edit:

Just remembering that BobP is/was a heavy DesignCAD 3d version 4 (DOS) modeler.  Maybe he still has the user reference manual.   I believe it was in the appendix.

jym_ing

Thank you prl.
Your suggestion (using SYS(36)) works great!

Quote from: prl on April 18, 2015, 03:03:10 AM
Unless Dt has it, I don't know of a reference source for the DC3 structure.  You could reverse engineer it by saving some solids, spheres, lines, as DC3 and reading the file in a text editor.

Regarding generating entities using BasicCAD, this can be extremely fast provided you stop the screen activity while it is doing the routine.  Specifically, use sys(36)=2 at the beginning of the routine and then sys(36)=0 at the end and before you exit the basiccad routine have it regenerate the screen only once.


Edit:

Just remembering that BobP is/was a heavy DesignCAD 3d version 4 (DOS) modeler.  Maybe he still has the user reference manual.   I believe it was in the appendix.

Bob P

I do still have the old manuals with the file format info.  They are hard to scan without removing them from the edge binding though.

jym_ing

Quote from: Bob P on April 18, 2015, 04:50:38 AM
I do still have the old manuals with the file format info.  They are hard to scan without removing them from the edge binding though.
I should have it too, somewhere in a crate; I even should have the diskettes 5-1/4"...

DrollTroll

Download and install the DesignCAD Developers Toolkit. In the back of the Developer's Guidebook I gave a breakdown of the .dc3 file format.

Or just use the attachment here.
25 years with DesignCAD

jym_ing

Quote from: DrollTroll on April 20, 2015, 08:07:45 AM
Download and install the DesignCAD Developers Toolkit. In the back of the Developer's Guidebook I gave a breakdown of the .dc3 file format.

Or just use the attachment here.

Thank you DT, that will help....
JYM