Page 1 of 1

Spline

Posted: 09 Jan 2015, 18:19
by mitzi
Hello,

I found that after save to DXF/DWG and following reload I cannot retrieve FitPoints from any TsgDXFSpline. Property FitCount returns zero. But spline is drawn correctly. Where's problem?

Re: Spline

Posted: 12 Jan 2015, 15:26
by support
Hello,

Did you create the splines programmatically or load them from a DXF/DWG file created in AutoCAD? If you have this problem with splines created programmatically, please, post a corresponding code snippet here.


Mikhail

Re: Spline

Posted: 12 Jan 2015, 16:05
by mitzi
Source DXF file is created in AutoCAD. When I load it in CAD VCL, everything is ok, FitPoints are present. But when i resave it in CAD VCL and open again then described issue occurs (FitPoints are gone).
The same happens if i create spline programmatically (with FitPoints). After save they disappear.

Re: Spline

Posted: 12 Jan 2015, 19:08
by support
Hello,

Fit points are saved to a DXF file only when TsgDXFSpline.FitCount > TsgDXFSpline.ControlsCount i.e. a quantity of fit points is greater than a quantity of control points.


Mikhail

Re: Spline

Posted: 13 Jan 2015, 10:21
by mitzi
Isn't it loss of information? When i want to select spline and draw FitPoints for its better managing using mouse then i have no way how to do it.

Re: Spline

Posted: 13 Jan 2015, 20:30
by support
Hello,

Fit points should be saved to DWG file format by CAD VCL, while DXF format stores only the control points. Earlier AutoCAD versions work the same way, the latest versions (AutoCAD 2010, for example) save both fit and control points to DXF format.


Mikhail