NumberOfPartsInCircle issue
Moderators: SDS, support, admin
NumberOfPartsInCircle issue
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 ?
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 ?
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:</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
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>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
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
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