Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solid Cubes in DXF 1

Status
Not open for further replies.

Hanss

Technical User
Feb 15, 2001
85
CH
I am working on a project where I need the most simple dxf file possible, without any needless information.

Description:

4 solid cubes with the colors green, black, red and blue placed together to form a large cube. Each cube should be 1 cm3.

I would appreciate any help!

Kind regards
Hanss
Zurich, Switzerland
 
Does it need to be an AutoCAD "solid" object or would 3dfaces, regions, lines with thickness, etc work?
Did you try dxf'ing out from an AutoCAD drawing and see what you get (of course this will have lotss of extraneous information).

Did you mean to say the larger cube contains 8 of the smaller cube? (a 2 x 2 cube)
 
Thank you very much for looking at this. What I would like are 8 solid cubes with different colors (solid modeling) which are placed together to form one large cube. I would then like to import the file into acrobat 3d and enable cross section views within acrobat 3d showing the diffent colors.

If anyone could post the DXF coding for one solid modeling cube, this would also be great since my research so far indicates that DXF does not have this capability.

Many Thanks
Hanss
 
I read a review of Acrobat 3D at that indicates it should allow import of a dxf file, and 2 other utilities ("3D capture & "Tolkit") that can be used to import 3d data.

I tried a "saveas" "dxf" of a drawing with colored cubes, viewed the dxf text file and say the typical garbled code for solids, then in a new drawing did a dxfin and it recreates the solids. So I'd say dxf does have the solid capability.
 
My goal was to get msaccess to create DXF ascii code based on values from a table and thereby produce a structure with many cubes where the colors of the cubes reflect values from the table. I was then going to import the structure into acrobat 3d. By viewing cross sections of the structure a lot of information could be conveyed to the viewer. But I now have the feeling that this is above me.

I guess what I need is a graphing program which could create such a structure from an excel file and then export it as a cad file to acrobat 3d. I will keep on looking...

Many thanks!
Hanss
 
Just out of curiosity...

Have you looked here:

For example, in the AutoCAD 2005 PDF on page 65...

3D Solid
Code:
The following group codes apply to 3dsolid entities. In addition to the group
codes described here, see “Common Group Codes for Entities” on page 62.
For information about abbreviations and formatting used in this table, see
“Formatting Conventions in This Reference” on page 2.

3dsolid group codes
Group   code Description
100     Subclass marker (AcDbModelerGeometry)
70      Modeler format version number (currently = 1)
1       Proprietary data (multiple lines < 255 characters each)
3       Additional lines of proprietary data (if previous group 1 string is greater
        than 255 characters) (optional)

There are also references for 3D Face, as well as all the common entity codes and so on...

Alternatively, if you have AutoCAD, you can take advantage of VBA (or VB) to create the Geometry from the data base programatically, then simply export the dxf.

Hope this Helps,
-Josh

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Thank you so much for responding to this thread.

I appreciate your idea about using VB in AutoCad.

I still have one little problem though:

While I have heard that it is possible to have a solid object in dxf. I have not been able to find an example of a solid object anywhere.

Kind regards,
Hanss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top