Spline

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
mitzi
Posts: 7
Joined: 05 Jan 2015, 12:53

Spline

Post by mitzi » 09 Jan 2015, 18:19

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?

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Spline

Post by support » 12 Jan 2015, 15:26

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

mitzi
Posts: 7
Joined: 05 Jan 2015, 12:53

Re: Spline

Post by mitzi » 12 Jan 2015, 16:05

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.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Spline

Post by support » 12 Jan 2015, 19:08

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

mitzi
Posts: 7
Joined: 05 Jan 2015, 12:53

Re: Spline

Post by mitzi » 13 Jan 2015, 10:21

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.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Spline

Post by support » 13 Jan 2015, 20:30

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply