Page 1 of 1

NumberOfPartsInCircle issue

Posted: 02 Nov 2007, 18:18
by Vilo
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 ?

Posted: 06 Nov 2007, 14:50
by support
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

Posted: 19 Nov 2007, 17:06
by Vilo
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

Posted: 21 Nov 2007, 14:32
by support
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