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.

STL file conversion for rapid prototyping

Started by virgal, June 15, 2011, 10:52:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

virgal

Hi all
I have started working in the 3D mode of Design Cad (v 21).  I would like to be able to convert my drawings to STL format for some rapid prototyping.

I searched this forum and did not find any discussion on this since 2009. 

Are there any new discoveries or advice for this process?

Is Accutrans still the only option?  If so what is the recommended DC export format.

Thanks
Alan
Design cad user since DC-DOS 

Dr PR

Alan,

I have used Accutrans and it does work nicely.

You need to export in V12 DXF - that's the only format that DesignCAD exports that Accutrans will import (unless there has been a recent upgrade).

One word of caution - be careful when you build solids from grids and other objects. It is very easy to leave gaps between surfaces, especially along grid edges. Gaps will cause problems with many 3D stereolith drivers. They can be repaired, but that usually is expensive.

Phil
DesignCAD user since 1987

virgal

Phil
Tried Accutrans and did my conversion. In the Accutrans viewer the parts look perfect. When I called back up the stl version it also looked good.

I did get 2 error messages.
1st error  "At least one coordinate is <=0.0  this may cause problems when the object is made in the stereo lithography apparatus or printer."

2nd error  "more than one object (layer) was written to the file.  Some programs may not be able to read this file."

My drawing was created by taking 2d shapes, converting them to a plane and extruding them to solids.  I did some solid define, solid additions and subtractions.

I ran a test by drawing a simple solid using one of the solid commands.
Ran it through Accutrans and got the 1st error message.

My question is what do these error messages mean and how do I go about correcting them.
Will be happy to email you the drawing if it will help.

Alan

Dr PR

Alan,

1. "At least one coordinate is <= 0.0"

This warning will be repeated for each object in a file. See "2" below.

Some CAD file types do not allow negative coordinates - STL is one of them. NCR machine code files are the same. Negative distances  make no sense relative to an object you are machining or creating with stereolithography.

You need to reset the Origin (Point/Origin) in DesignCAD so all parts of your drawing are positive distances from the origin in the STL file. A part of the object does not have to be at the origin - the whole thing just needs to have positive coordinate values.

This is a bit tricky!

STL files have the XY plane horizontal with the Z axis increasing vertically and the Y axis increasing positively "into" the drawing. DesignCAD defaults to the XZ plane horizontal with the Y axis increasing vertically and the Z axis increasing "into" the drawing. So when you open the file in Accutrans you will be looking at the "bottom" of the object. This in not a problem really - you can rotate the view so the Y axis points up.

However, this means the Z axis polarity is reversed between the two formats. With the XY plane vertical the Z axis increases positively "out of" the drawing. You need to put the origin "behind" all of the objects in your DesignCAD drawing - in a more positive Z axis direction than all other objects.

You might think this would cause your objects to be mirrored on the Z axis - they won't be. I have no idea why, but my assymetrical objects come out correctly in the STL file.

Accutrans has a "Save Object with Options" dialog that tells you the drawing coordinates. These should all be positive numbers.


2. "More than one object ..."

When you create the DXF file in DesignCAD your original layer orginization is saved in the DXF file. Accutrans can treat each layer as a different object, resulting in multiple objects in a single STL file. Some (all?) STL drivers expect a single object in a file.

Furthermore, you may have multiple solids in a single layer, and this confuses things a bit.

To be safe, in DesignCAD you should be sure to lump all parts of a single object together with "Solids/Solid Define" and be sure they are on a single layer, with only one object per layer. You can save each solid in a separate file and then generate an STL file for each solid.

The Accutrans "Save Object with Options" dialog has a "Layers" list that allows you to select individual layers from a file for writing to an STL file. This seems to work for creating multiple STL files from a single multi-object drawing file.


****

Creating STL files with Accutrans is a bit of an adventure the first few times but it does work. The program can manipulate your files in many ways, but I have no idea what all of the options are. I have attached an image from Accutrans showing a STL object I created. This shows the XYZ coordinate system, and the control stand on the boat is on the right (correct) side.

Phil
DesignCAD user since 1987

virgal

Thank you Phil

You were right on.  I fixed the layer problem in design cad and it processed beautifully.

yesterday I had asked the developer of Accutrans the same questions and below is his response.

I also asked if he could add Design Cad as input file to Accutrans.


The Design Cad file is a binary file.  If there is no file format document describing the file format (and this is the case for many proprietary file formats) it is a long job to reverse engineer the file format.   As Design Cad can export to DXF files which AccuTrans can support and as I have more requests than I have time to do it is not worthwhile to add support for DCD files.

The STL file format was made for the original StereoLithography machine and at that time the computers had less memory and were less powerful.   The first warning about coordinates was to alert the operator that the 3D object to be made was partly outside of the resin tank.   Just turn off the warning and forget about it.   With today's rapid prototyping machines the operators move and rotate the 3D mesh into the best orientation before they start to make the prototype.

Note:  I have no hands on experience with any rapid prototyping machine and have only seen them operate in videos.

The warning for too many layers:  Originally the STL file was meant to only contain one layer.   Some software write multiple layers to the STL file so I added that also to AccuTrans.   Use the "Tools -> Merge All Layers" menu command in AccuTrans and all the meshes will be moved into one layer.  Some rapid prototyping machines will reject an STL file that has more than one layer.

Some of the newer RP machines use files like Collada and will print the model in multiple colors.   I am not sure of their specific requirements.   They could be using multiple layers and the color assigned to each layer or they could be using one layer with a UV texture map for the colors.

AccuTrans does not  do all the checks necessary for getting a model ready for rapid prototyping.   There are some free programs (can't think of their names right now) that do a number of checks.   Assume you have two boxes that are not touching one another and both are watertight.   Next push the boxes together so that they intersect with another.   AccuTrans will not check for this intersection and just report that the boxes are watertight.

RP machines have a minimum thickness that they can make a part.  For example, you might have a radio antenna on a locomotive with a diameter below the minimum thickness and thus it could not be made in a RP machine.

As you pay for the amount of material that goes into a model there is software which will 'shell' your model to make its interior hollow.

You have to check the alignment of surface normals ("Align -> Flip Polygons - Start/Stop" menu command) in AccuTrans before sending the file to the RP machine.   The RP machine uses the surface normals to to know when to start and stop depositing material to make the model.

CAD programs usually do double sided rendering so many surface normals are always pointing in the wrong direction.  Read the AccuTrans manual to learn how to fix the normals.

You have to size your model to the correct size.  Ask the RP company what is the size of one unit in the STL file.  One company may say that one unit in a STL is 1 millimeter, another company may say it is one meter and another company may say it is one inch.  You can resize the model in AccuTrans and AccuTrans has a unitless system of measurement so one unit is whatever you want it to be.

When you click on a button with a question mark icon and the word help the appropriate page in the help manual will be displayed.

Some help information is only available via context sensitive help.   Click on the button with an arrow and question mark and the words 'C-S Help' and then click on the various buttons, etc. to get additional help information.

If the help manual does not display correctly there is a link to click on near the top of the 'downloads' page at the website which takes you to instructions to fix the problem.

again thanks

alan



Dr PR

Alan,

Thanks. I have had "normals" problems with DesignCAD DXF exports. Maybe I should study the AccuTrans help file a bit more.

I have requested STL output from DesignCAD, but with the current development budget it isn't likely to happen soon.

Also, DesignCAD once had an ASCII file format in addition to the binary format, but for some reason the ASCII file format was dropped. Too bad - it made it easier to examine files for problems and manipulate files with macros or other programs. If the file format was public I'm pretty sure some of the more dedicated users would have written file translation programs for many common file types.

Phil
DesignCAD user since 1987

magic

Hi Dr PR,

DesignCAD 3D MAX v. 21 will still save and open in ASCII format, 2D as well as 3D, but it's true that it will only import, not export, xyz format, if that's what you meant.
It's a kind of magic!




Dr PR

magic,

Thanks. Somehow I had it in my head that the ASCII format had been dropped.

Maybe I was thinking about PCAD - they initially announced that their ASCII file format was "the standard." Then a few years later they dropped it suddenly, with no ability to open existing ASCII files! When I complained the CEO of the company responded and said their "research" revealed that nobody uses old files anyway! What an idiot! No wonder the company went down hill with morons like that running it!

I may spend some time looking at ASCII files, especially those with definite problems, to see if I can figure out what isn't right. I have been thinking of writing a binary file analyzer program but I haven't wanted to spend the time.

Phil
DesignCAD user since 1987