NumberOfPartsInCircle issue

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

Moderators: SDS, support, admin

Post Reply
Vilo
Posts: 6
Joined: 02 Nov 2007, 18:05

NumberOfPartsInCircle issue

Post by Vilo » 02 Nov 2007, 18:18

Hi,

I'm using CADImportVCL version 6.1, and have an issue with the arc/circle approximation ...

The default behavior of TsgDXFConverter is to transform all arcs, circles, and spline into segmented lines.

It seams possible to set the final complexity by tweaking :
<i>Converter.NumberOfPartsInCircle</i>
<i>Converter.NumberOfPartsInSpline</i>

But, when I set <i>NumberOfPartsInCircle</i> to 16 or 8 or another small value, I got an exception in <i>Layouts.Iterate</i>.

Am I doing something wrong ?

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

Post by support » 06 Nov 2007, 14:50

Hello, Vilo.

Please do the following:
<ol type="1"><li>download demo available at the following link: http://www.cadsofttools.com/download/Template.zip</li>
<li>put on new button a form </li>

<li>add the following code:

Code: Select all

<b>procedure</b> TForm1.Button1Click(Sender: TObject);
<b>begin</b>
  TsgDXFImage(sgPaintBox.Picture.Graphic).Converter.NumberOfPartsInCircle := 3;
  TsgDXFImage(sgPaintBox.Picture.Graphic).Converter.NumberOfPartsInSpline := 3;
  sgPaintBox.Invalidate;
<b>end</b>;
</li>
<li>compile the demo</li>
<li>open any CAD file with arcs and circles</li>
<li>press added button</li></ol id="1">
Sergey.

Please post questions to the forum or write to support@cadsofttools.com

Vilo
Posts: 6
Joined: 02 Nov 2007, 18:05

Post by Vilo » 19 Nov 2007, 17:06

Hello,

Nice demo, but it didn't answer my question at all [?]

My problem is in the tsgDXFImage "iteration" process.
When I leave all options to their default values => OK
When I tweak "NumberOfPartsInCircle" => access violation

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

Post by support » 21 Nov 2007, 14:32

CADImportVCL contains Viewer Demo, which can change number of parts in a circle. There are no any exceptions.

Could you please produce a simple demo with a similar exception and send it to us?

Please post questions to the forum or write to support@cadsofttools.com

Post Reply