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.

ellipse

Started by kchoekstra, April 29, 2015, 07:21:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kchoekstra

Hey all. Can someone tell me how to draw this ellipse. Thanks.

   KC.

Rob S

Designcad draws an ellipse, but I don't know if it agrees with the formula you have provided.  It appears the "ellipse" shown on your pdf is less than half of a real ellipse, and more pointed.

One way to provide an accurate representation of the exact specified formula would be to calculate the required co-ordinates for a series of points in a spreadsheet, save the resulting series as a comma delimited text file, and import them into Dcad. 

You could then get a segmented line or curve following those imported points

Have you imported points from a text file before?
User since forever

kchoekstra

I understand the table you are talking about but no I have not done the other.

Bob P

There is a good explanation in the manual in the Import section.

Dr PR

KC,

You can import text files that contain XYZ (or XY) point sets.

Open the Help file. In the Index list type "Import" into the search box. Scroll down to the "XYZ" section for details about XYZ file structure.

Each point is a single line entry with X, Y and Z coordinates (or just XY).
Successive lines in the file form the points of a line or curve.
Blank lines separate multiple point sets in the text file.

You can have multiple line point sets in a single XYZ data file.

So, doing as Rob suggested, use a spreadsheet (or a calculator) to calculate the coordinates of a sequence of points on the curve.

Export it as a CSV (comma separated variable) file. Then edit it in a text editor so it has the DesignCAD XYZ file structure.

Save it as a simple text file with no formatting with the .xyz file type.

Import it into DesignCAD using the "File/Import" option "Connect Points By Curve."

It actually is a lot simpler than it sounds.

Phil
DesignCAD user since 1987

Rob S


With apologies to Dr who posted while I was writing:

It's actually very easy as per those above-mentioned directions under "import xyz", so just start by making any kind of table, and try it a couple of times.

To make the points file easier to find name it *.xyz.  Not sure if still the case, but in one version it was necessary to have z co-ordinate of 0 for each poiont.

Once you have it working, then you can refine the point density and etc to get exactly what you want
User since forever

kchoekstra

Thanks to all. I will experiment.

  KC.

DrollTroll

#7

'parab.d3m -- Draw a parabola of the equation x = sqrt(y)/1.8
' constraints are max y = 1.25
' If we do ten points on either side, dy = 1.25/10 = 0.125
' If more or less points on either side, change the counter and
' the 0.125 multiplier accordingly

>Curve
{
  For i = -10 to 10
    y = ABS(i) * 0.125
    x = SGN(i)*sqrt(y)/1.8
    <Pointxyz [x, y, 0]
  Next i
}


Modified version attached with 40 points per side.
25 years with DesignCAD