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.

DesignCad V23 (2D) - Importing Problem With Curves/Radii

Started by Industrial Flame Cutting, September 18, 2014, 11:35:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

The Scud

My time with DXF has proven to be to use R12  as being the most stable over a number of CAD formats and even today, I try to save a DXF back as far as I can to R12 if that is not available.
BETA tester from long ago.
User of:
SolidWorks 2024, CREO10 and TurboCAD Professional.
FIM Senior Technical Steward for MotoGP.
Work at: Semi-retired..

Industrial Flame Cutting

Thanks again.  I will keep that in mind.  I just changed the setup for dxf exporting to R12.  Thanks for all your help.

DrollTroll

I think the issue here is the type of spline that is contained in the DXF file. AutoCAD currently offers two spline types -- control point and fit. The Control Point type of spline uses a sort of "cage" of points that the curve fits inside of. The Fit type of spline uses each point as a "the curve goes through here" point.  It's possible that older versions of AutoCAD only had the cage methodology. DesignCAD's curves only use the Fit method, and it doesn't necessarily auto-convert from one to the other on import. So when DesignCAD sees the spline in the dxf file, it's using what should be a control point as a pass-through point. Result -- completely different shape.
25 years with DesignCAD

Industrial Flame Cutting


samdavo

#19
Just a follow on question or two (PS or three) (PS or four)
Question 1.
But does anyone know if a curve EXPORTED from DCAD (preferably as a dwg file) will open correctly in AutoCAD?

I suppose that applies to
circles
arcs,
brasier curves
and random curves.

I'm thinking the safe thing to do (for the latter two) might be to draw a vector selecting a representative set of points around the curve (or Vector Convert provided it doesn't create hundreds of points)

Question 2.
Does anyone know how DCAD decides the number of points when you use Vector Convert?  And is there any way to change that? 

PS I drew a 4-point Bezier curve and also a random 5-point curve, (roughly a sine wave each) -
Vector Convert gives 36 points for the ex=bezier curve,
and 97 points for the ex-normal curve.

PS the number of points doesn't change with the scale of the curves, i.e. a large "normal-curve sinewave" will also have 97 points when VC'ed (PS assuming it is "similar").  For the Bezier curve 100 units long, the length between points ranged approx 2.8 to 3.3.   For the normal curve 100 units long, the length between points ranged approx 0.43 to 10.9 (i.e more variation).   

I thought I might be able to segment each into say 10 segments to get say 11 points.     Trouble then is that each segment has multiple points, and the total is about 20% more than simply VC'ing the original curve.    For my trial, the Bezier tends to have about 5 or 6 per segment (irrespective of local curvature),  - however the normal curve tends to have less than that when there isn't much curvature, and up to 30 or more in those segments where there is considerable curvature - with the total up to about 116.  (2 cents)  PS The length of each segment is of course 10 units ( assuming 10 segments and a 100 unit long original curve.

PS One could always hand-pick a sample of the points (even the ends of the 10 segments) and draw a new vector I guess.

PS Question 3
Is it safer to use dxf rather than dwg when exporting and sending to someone who uses ACAD?  PS, eg for curves, and small radiused corners? - and other entities I guess.  Talking 2D only of course.

PS Question 4
When you blokes speak of a "spline", I assume you mean a straight segment that forms part of the curve?  Which typically requires two points set at each end when using the Curve command ?

prl

Quote from: samdavo on September 26, 2014, 02:28:55 PM
Just a follow on question or two (PS or three) (PS or four)

Not all the answers but some.

Q1.  DesignCAD curves become equivalent AutoCAD splines (same shape and control points).
       DesignCAD circles become equivalent AutoCAD circles (same shape and control points), same for Arcs.
       DesignCAD bezier lines are vector converted in AutoCAD.

Q3.  As far as I know, Dc exported dwg and dxf are equivalent when imported into AC


Edit: mind you, I've observed these results exporting using the ACAD 2000 export filter.  New filters and AutoCAD capabilities are thus avoided since we are talking of primitives at a time when DesignCAD and AutoCAD were a bit more equally matched.