by pascal07 » 01 Feb 2011, 15:24
hello, thanks for this answer, but, other, i found a bug in your component: ( Data incorrect definition of the ellipse. )
1 - For test your code, i have add ( make ) a AddEllipse function in your demo CADExportDemo project.
this code is :
function TForm1.AddEllipse: TsgDXFEllipse;
begin
Result := TsgDXFEllipse.Create;
Result.Point := MakeFPoint(100,100,0);
Result.EndPoint := MakeFPoint(50,50,0);
Result.Ratio := 2;
Result.SetColor(clRed);
Result.Layer := FCADFile.Converter.LayerByName(cnstLayerName);
Result.SetLType(FCADFile.Converter.LTypeByName(cnstLTypeName));
if not AddEntityToLayout(Result) then
begin
Result.Free;
Result := nil;
end;
2 - i run this project: in screen, the Ellipse is drawing, ok.
3 - I save the PDF File
4 - I open this DXF file with Autodesk DWG TrueView: Error :
FR:
L'erreur suivante a été rencontrée lors de la lecture
de ELLIPSE qui commence à l'adresse octet 844:
Données incorrecte de définition de l'ellipse.
Entrée DXF incomplète ou non valable -- dessin ignoré.
US:
The following error was encountered while reading
Ellipse begins at byte 844:
Data incorrect definition of the ellipse.
DXF input incomplete or invalid - drawing discarded.
Where is the bug ??
if you want the code or DXF file, please sent me a mail: 2011.pascal.eynard [at] orange.fr
thanks
Pascal
t