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.

plotting depths on a contour

Started by paul craig, January 19, 2012, 03:49:10 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

paul craig

hi guys,
back to the dark side, i am trying to get some moulds for vacuum forming, of some railway carriages.

i have drawn the profile but wonder if there is a way that i can use that profile to determing coordinates for a milling machine.
i will be using a 4mm curved cutter, and move it across by .25mm increments over a 31mm space. but in the middle is a further contour

i have attached a file of the drawing, and wonder whether you have any bright ideas to allow me to speed up the process of determing the coordinates.
i think the x coordinate will go from 0 to 320mm y from 0 to 16.5mm and z from -15.5 to 15.5mm is there maybe a macro, or
a simple way to do it??
paul :-[

Bob P


Dr PR

Paul,

Bob P refers to Magic Systems' Contour Cam add on for DesignCAD. It will generate G code for driving NC milling machines. If you drew your surface in 3D ContourCAM would carve it out of a block of material on a NC milling machine.

One thing you might try is saving the file as a DesignCAD DC2 Ascii file format. You can open this file in a text editor/word processor. The XY coordinates will be buried in all of the file definition code but you can find them. Start with a very simple file with a single line drawn from two known coordinates and see how it appears in the Ascii file. It is a lot of work, but it might work.

Another way is to just create a bunch of points along the curve and record the coordinates manually for each point.

Phil
DesignCAD user since 1987

MarkX

Since there's an XYZ import facility, shouldn't there be an XYZ export facility?

The free text editor Notetab Light has a pasteboard capture routine that might help capture copied values.

Mark

paul craig

oh my sad lack of knowledge ::)

how do i save in dc2 ascii please??????

paul

Bob P

File | SaveAs.  It's at the bottom of the drop-down list under the file name.

Dr PR

Paul,

I use a program called AccuTrans3D - it costs $20. It will import DXF files exported from DesignCAD. One of it's output formats is XYZ files. These are just lists of points in ASCII text with comma, space or Tab delimiters. Here is an example of a comma delimited point:

XX.XXX,YY.YYY,ZZ.ZZZ

One point per line, with precision determined by the program.

With DesignCAD these files are formatted so that a sequence of points on adjacent rows represent a continuous line in the drawing.

Blank rows break lines, so a single file can contain multiple lines represented by groups of points with blank rows separating individual lines.

I haven't tried exporting a DesignCAD line to DXF, importing the DXF into AccuTrans and then exporting it as an XYZ file, but I can't imagine much can go wrong. If I have time later I might try it.

Phil
DesignCAD user since 1987

paul craig

hi phil, that looks interesting, mind you not sure if i can buy said programme here in the uk.

surely this must be a case for a troll made macro ;D

interesting that over here i have to export the files into either dwg or dxf to pass them on to my etchers.
i check them in autocad reader which is a free download. i am finding that dxf files are an easier transfer from
dcad, less spiders webs, and fill problems.

all the best
paul

paul craig

ok, found how to save as ascii, but how do i open it in word or excel?? keeps asking me for a format to open it in!!!!

if only computers made sense ;D ;D

paul

Bob P

Just rename the extension to txt.  It's pretty easy to find the point values in the file contents, but if you need more detail, I can scan my old DOS manual tomorrow, or maybe Mr. Troll can post them.

MarkX

Quote from: paul craig on January 24, 2012, 02:34:22 PM
ok, found how to save as ascii, but how do i open it in word or excel?? keeps asking me for a format to open it in!!!!

if only computers made sense ;D ;D

paul
Hi Paul,

Right click and then select "Open with..." From the dialog box, select the application you wish to open the file with. Probably notepad or some other text editor is best. But I don't think this is going to get you where you want to go.

Mark

DrollTroll

#11
Let me just add that, if you save to DesignCAD 2D Ascii (*.dc2) format, the point coordinates are multiplied by an internal scale factor -- by default this is 8, but if you've used the Units command, all bets are off. The appropriate value is stored somewhere at the beginning of the file, but I'd have to dig to find exactly where.

Somewhere I've got a "MakeXYZ" macro that generates annotated xyz dumps of selected objects. If I can find the latest version I'll post it in DrollTroll's Tools. However, that probably won't be much good to Paul's etchers -- they may not know how to interpret the circle and arc data, for example.

*update* Posted. See the DrollTroll's Toolbox thread in Tips and Tricks.
25 years with DesignCAD

paul craig

interesting troll man, will check it out, it is not however my etchers who need the data, it is to provide a vacuum formed roof for the various carriages i am making. i need to make the pattern and had hoped to create it using a cam milling machine. hence the need for coordinates. basically i would start a 4mm round nosed cutter 2mm in from each edge, at the first depth, then move inwards by 0.25mm each pass, to reduce the ridges on the metal former.

i think the simple way might well be to pitch vertical lines at those spaces across the shape, and then just take each length from the y=o coordinate.

however, i may well end up making a solid metal scraper and making a wooden plug.  i think a 0.30 inch steel scraper would solve the problem, but then i have to think about the kind of material from which to carve the mould, or i could coat mdf with a resin and as that is drying, use a shaver to get the correct profile. not sure yet. ;D

paul

bdeck

I see you've converted the arcs to polylines.

If you just want to output the coordinates of the points of the polyline, after setting the origin you could use the macro APW.d3m to step through the points.

It will print them to the screen, but you could modify it to output to a file.

BD


paul craig

didn't know i had converted the lines, i guess i must have used the b command to join them.

are there any instructions how to use that macro??

thanks
paul