Angle in MText
Posted: 19 Jan 2011, 17:17
Hi,
I received new version of CadImportVCL (7.2.5) and replaced the old version with it.
Now Angle in class TsgDXFMText is always set to 0 instead of text angle. This happens only with AutoInsert set to false. In previous (7.1) version it was working.
I found in TsgDXFMText.Loaded routine, that you calculate vAngle and use it to calculate matrix, but it is not stored for use in iterations.
Can I use TsgDXFMText.FPoint1 to calculate angle?
This is example of how I start import of the file:
DwgObj.LoadFromFile(IDataFile);
If Not Assigned (DwgObj.CurrentLayout) Then
If DwgObj.LayoutsCount > 1 Then
DwgObj.CurrentLayout := TsgDXFLayout(DwgObj.Converter.Layouts[1])
Else DwgObj.CurrentLayout := TsgDXFLayout(DwgObj.Converter.Layouts[0]);
FCADParams.Matrix := IdentityMat;
DwgObj.Converter.ImportMode := imImport;
DwgObj.Converter.NumberOfPartsInSpline := 4;
DwgObj.Converter.NumberOfPartsInCircle := 4;
// DwgObj.Converter.AllArcsAsCurves := Not TSdmsLyr(FParentList.FParent).AllowedEntity[ttArc];
DwgObj.Converter.AutoInsert := Not FDXFNoBlocks;
DwgObj.Converter.Params := @FCADParams;
DwgObj.Converter.Iterate(AddDwgEntity, Nil, FCADParams);
I received new version of CadImportVCL (7.2.5) and replaced the old version with it.
Now Angle in class TsgDXFMText is always set to 0 instead of text angle. This happens only with AutoInsert set to false. In previous (7.1) version it was working.
I found in TsgDXFMText.Loaded routine, that you calculate vAngle and use it to calculate matrix, but it is not stored for use in iterations.
Can I use TsgDXFMText.FPoint1 to calculate angle?
This is example of how I start import of the file:
DwgObj.LoadFromFile(IDataFile);
If Not Assigned (DwgObj.CurrentLayout) Then
If DwgObj.LayoutsCount > 1 Then
DwgObj.CurrentLayout := TsgDXFLayout(DwgObj.Converter.Layouts[1])
Else DwgObj.CurrentLayout := TsgDXFLayout(DwgObj.Converter.Layouts[0]);
FCADParams.Matrix := IdentityMat;
DwgObj.Converter.ImportMode := imImport;
DwgObj.Converter.NumberOfPartsInSpline := 4;
DwgObj.Converter.NumberOfPartsInCircle := 4;
// DwgObj.Converter.AllArcsAsCurves := Not TSdmsLyr(FParentList.FParent).AllowedEntity[ttArc];
DwgObj.Converter.AutoInsert := Not FDXFNoBlocks;
DwgObj.Converter.Params := @FCADParams;
DwgObj.Converter.Iterate(AddDwgEntity, Nil, FCADParams);