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.

Drawing curve through reference points

Started by RICKV100, February 05, 2015, 01:37:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RICKV100

Dear users,

I have a need to copy a automotive frame into DesignCad. If I trace the profile,
how would I go about drawing it in DesignCad? I would have a table of heights from a baseline. Almost like lofting a boat to full size.

Per earlier question I cannot set single points and then connect through them using a line.

Thanks,

Rick

Bob P

You can use pointmarks to set reverence points, but I would use a separate "construction layer" to create some preliminary lines over which you can draw your frame.  It would help if we knew approximately what the chassis looked like, and whether your ultimate goal is a 3D model.


Rob S


Not sure why you can't set points first, and then draw the curve.

You should be able to connect pre-set points by using "options, pre set point mode", set your points, and hit the curve icon.

Failing that, you can always draw "point-marks" first as many as you like in any order, and then right-mouse snap to them to draw your curve.

Having done either of those, you can use point-select mode to edit the points of your curve and add additional points to smooth it out where needed.
User since forever

RICKV100

Bob,

It would be a chassis rail for sending to a plasma cutter.



Rick

DrollTroll

Don't forget: If you have a table of numbers in XYZ format, you can import that data as pointmarks, lines, or curves.
XYZ files have a single x,y,z coordinate on each line, separated by commas.
If importing as lines or curves, place a blank line between connected sets of points.

Example attached; you can load it into a text editor to look at the format, and you can import the points using File/Import and selecting the XYZ format.
25 years with DesignCAD

samdavo

#5
DT
Thanks,
I never thought of this before, but it has long been a hassle for me that Excel is not as easy to export xyz files from (or comma separated files) as Lotus 123 was;    but using Notepad as an intermediary (seems to) make it easier.   (PS Mind you, Lotus 123 is easier still imo - maybe I'm biased against Microsoft).

As an example,
I enclose an  Excel spreadsheet with 5 sets of x,y coords.
I select the red set (which is a simple linear graph x = y), and copy to clipboard.
I open Notepad and paste it - you have x and y coords separated with "tab" (but no need for comma)
Save file as L2.xyz  (in the same file as your macros)

Repeat for the gold/brown data  (based on y = x^2)
Save that as L3.xyz (ditto)

Repeat for the green data  (based on y = x^3)
Save that as L4.xyz

Repeat for the blue data  (based on circle)
Save that as L5.xyz

Repeat for the purple data  (based on ellipse)
Save that as L6.xyz

Then open a new file in DCAD
and run the macro "import 5 layers.d3m"

You should have the five lines in their allocated colour (red gold green blue purple) and separated into five layers (layers 2 to 6).
(2 cents)

(edit)   That macro will import a line (x 5) , because of the "type" setting :-
  <Type 1
Type 2 would import a curve, and Type 3 would import points.


'import 5 layers.D3M LOADS LINES FROM EXCEL but through intermediary of Notepad
'firstly set manipulate all layers

for j = 0 to 100
layer(j) = 6
next j
layer(sys(3))=14
sys(26)=0

'next load L2.xyz as red layer2, etc
>XyzIn
{
  <Layer 2
  <color 255,0,0
  <Filename "L2.xyz"
  <Size 0.5000
  <Type 1
  }

>XyzIn
{
  <Layer 3
  <color 255,130,0
'brown
  <Filename "L3.xyz"
  <Size 0.5000
  <Type 1
  }

>XyzIn
{
  <Layer 4
  <color 0,255,0
  <Filename "L4.xyz"
  <Size 0.5000
  <Type 1
  }

>XyzIn
{
  <Layer 5
  <color 0,255,255
  <Filename "L5.xyz"
  <Size 0.5000
  <Type 1
  }

>XyzIn
{
  <Layer 6
  <color 255,0,255
  <Filename "L6.xyz"
  <Size 0.5000
  <Type 1
  }

'turn on all layers - new reqt
'for j = 0 to 100
'layer(j) = 6
'next j
'layer(sys(3))=14
'sys(26)=0
 

>FitToWindow
{
  }




samdavo

#6
PS Or you can add z coords as well, and you get a 3D line,  eg the locus of a half-pipe snowboarder  (which is obviously just the parabola back and forwards with a linear increase in z ) .

This time I enclose the xyz file which has clearly been copied from excel.
PS and I just opened a new dcd file, then File\Import and choose that test file of xyz points, i.e. I didn't use the macro this time.