CAD Import VCL component:
December, 2015
•The DXFExport.pas unit name was changed to CADExport.pas. You should change DXFExport to CADExport in Uses in the current projects.
July, 2013
•Tsg2DBoundaryList class changed ancestor from TList to TsgListObject class.
•TsgCADCurvePolygon.BoundaryData became an array property.
June, 2012
•New classes:
oTsgDXFObjectEntityColor (derived from TsgDXFObjectEntity). As a result, the following classes changed ancestor from TsgDXFObjectEntity to TsgDXFObjectEntityColor class: TsgCADPolyPolygon, TsgDXFPenEntity, TsgDXFCustomVertex, TsgFlatEntity
oTsgAcadTableCell (derived from TPersistent)
oTsgAcadTableCellStyle (derived from TPersistent)
oTsgCADRasterVariables (derived from TsgDXFObjectEntity)
oTsgDXFAcadTableStyle (derived from TsgDXFPenTableItem)
oList classes:
•New functions:
oTsgDXFViewPort.GetBoundariesAsPoints
•New procedures:
oTsgDXFSortEntsTable.SortEntities
•Type of properties and procedure parameters that indicate list of items is changed from TList to TsgSingleList, TsgIntegerList or TFPointList (depending on type of objects that are stored in the list).
•Type of the following properties is changed from TColor to TsgColorCAD:
•Type of the following properties is changed from Single to Double:
•Method DeleteEntity in TsgDXFConverter class is renamed to RemoveEntity.
•TsgCADGradientPolygon.GradientColor became an array property.
•The declaration of TsgDXFXRef.Name property includes a write specifier.
August, 2009
•Procedures TsgDXFText.GetSHXLines, TsgDXFText.GetSHXLinesEx, GetSHXText, DrawSHXText, GetSHXTextFromStyle, GetSHXTextBox, DrawSHXTextBox, GetSHXTextBoxFromStyle receive one more parameter CodePage: Integer. It is recommended to transmit codepage value from file (Converter.CodePage) into this parameter.
•The type of the text parameter is changed in the procedures: GetSHXText, DrawSHXText, GetSHXTextFromStyle, GetSHXTextBox, DrawSHXTextBox, GetSHXTextBoxFromStyle. The new type is sgRawByteString.
•TsgDXFConvertor.HeadVarStruct is used to receive values of header-variables;
•TsgDXFGroup.DeleteEntity(AEntity: TsgDXFEntity; DoFree: Boolean) allows to remove an entity from group.
•Properties: LineType: TsgDXFLineType, Block: TsgDXFBlock, Layer: TsgDXFLayer, Style: TsgDXFStyle, DimStyle: TsgDXFDimensionStyle in TsgDXFEntity and descendant classes can be set only to values from corresponding sections of TsgDXFConverter, except if other indicated. There are corresponding functions for search by name:
a)object won't be created if doesn't exist
a.1. TsgDXFTable.FindEntByName(const AName: string)
a.2. TsgDXFConverter.LTypeByName(const AName: string)
a.3. TsgDXFConverter.BlockByName(const AName: string)
b)object will be created if doesn't exist
b.1. TsgDXFConverter.LayerByName(const AName: string)
b.2. TsgDXFConverter.DimensionStyleByName(const AName: string)
b.3. TsgDXFConverter.StyleByName(const AName: string)
•New procedure TsgDXFEntity.Clone(const Source: TsgDXFEntity)
•New properties added into TsgDXFDimensionStyle, TsgDXFDimension, TsgHeadVarStruct
•New definition of TFMatrix record.
•New class TsgCADBasePolyline.
•Following classes changed ancestors:
TsgDXFPolyline = class(TsgCADBasePolyline); |
TsgDXFCircle = class(TsgCADBasePolyline); |
TsgDXFSpline = class(TsgCADBasePolyline); |
TsgDXFImageEnt = class(TsgCADWipeout); |
TsgDXFAcadTable = class(TsgDXFInsert). |
•It is necessary to call Loaded after initialization when TsgDXFLineType is used.
•If TsgLines used out of the TsgDXFLineType calling Loaded after initialization is necessary. Otherwise TsgLines object created, loaded and deleted automatically.
•TsgDXFEntity.SrcStart, TsgDXFEntity.SrcEnd became obsolete and will be removed in the future versions.
•TsgDXFMText.RectHeight became obsolete. We recommend to use TsgDXFMText.LineSpacingFactor instead of it.
•TsgDXFAcadTable has only properties from ancestor, rotation angle ignored.
•Type of properties MSpaceHeight, PSpaceHeight, PSpaceWidth changed to double.
•New class TsgCADdxfImage for DXF files opening.
•TsgDXFImage renamed to TsgCADImage. Now it's a base class for all CAD formats and for redraw. It is necessary to create class that corresponds format to import this format.
•TsgDXFImageClass renamed to TsgCADImageClass
•DWGPreview renamed to CADPreview.
•Constants sImpossiblePointerID, sFilledArrowForLeader, sNewBlockID deleted.
•TsgCADImage.Is3D is removed. Use TsgCADImage.Converter.Is3D if necessary.
•TsgCADImage.Converter.Is3D now is read only. It is obsolete and will be removed in the future versions.
•TsgDXFText.Scale became obsolete. Use TsgDXFText.XScale instead of it.
•The following properties and methods removed:
oTsgDXFconverter.HeadVar();
oTsgCADImage.HeadVarAsInteger();
oTsgCADImage.HeadVarAsFloat();
oTsgCADImage.HeadVarAsstring();
oTsgDXFConverter.ImageDefCount;
oTsgDXFBlock.SoftPointerID;
February, 2007
• | TsgImage component became obsolete. We recommend to use TsgDrawingNavigator component. |
• | Properties TsgDXFLine.Thickness, TsgDXFPenLine.Thickness and TsgFlatPoly.Width have been removed and replaced by the property TsgDXFEntity.LineWeight. |
• | type TsgCADEntityProc = procedure(Entity: TsgDXFEntity) of object; has been changed to: |
TsgCADEntityProc = function(Entity: TsgDXFEntity): Integer of object;
• | procedure TsgDXFLayout.Iterate(AConverter: TsgDXFConverter; Proc: TsgCADEntityProc); has been changed to: |
procedure TsgDXFLayout.Iterate(AConverter: TsgDXFConverter; Proc, FinishProc: TsgCADEntityProc);
• | procedure TsgDXFConverter.Iterate(Proc: TsgCADEntityProc; var Params: TsgCADIterate); has been changed to: |
procedure TsgDXFConverter.Iterate(Proc, FinishProc: TsgCADEntityProc; var Params: TsgCADIterate);
• | Class TsgDXFPoint is a descendant of TsgDXFCustomVertex (previously it was a descendant of TsgDXFLine class). |
• | Type of property TsgDXFConverter.PaperSpace has been changed to Boolean. |
• | Property TsgDXFConverter.Iterate became obsolete. We recommend to use the following way instead of it: Converter.Layouts[I].Iterate (I=0..Converter.LayoutsCount-1) |
• | Property TsgDXFEntity.PaperSpace became obsolete. We do not recommend to use it. |
• | Property TsgDXFConverter.OnCreate became obsolete. Since now there is no need to call Converter.OnCreate(Entity); when creating new entity. |
• | Property TsgDXFEntity.OnDraw became obsolete. We do not recommend to use it. |
• | The following properties and methods have been removed: |
§ | OnInsert |
§ | OnViewPort |
§ | PttBaseP |
§ | PttLineAngle |
§ | PttNumLines |
§ | PttOffset |
§ | Enters |
§ | CreateEx |
§ | PaperSpaceHandle |
o | TsgHatchPatternData - field DashLen (multiple entries) |
May, 2006
• | The following type have been removed: TsgHatchType, PsgHElem, TsgHElem. |
• | The following classes have been added: |
o | Tsg2DCurve = class |
o | Tsg2DArc = class(Tsg2DCurve) |
o | Tsg2DEllipse = class(Tsg2DArc) |
o | Tsg2DLine = class(Tsg2DCurve) |
o | Tsg2DPolyline = class(Tsg2DCurve) |
o | Tsg2DSpline = class(Tsg2DCurve) |
• | Class TsgDXFHatch was replaced by TsgCADHatch class. |
• | TsgDXFHatch.Polylines was replaced by TsgCadHatch.Boundaries (this property is inherited from TsgCADPolyPolygon class). |
• | The mentioned above descendants of Tsg2DCurve class are necessary for using instead of deleted PsgHElem (in TsgCADCurvePolygon.BoundaryData). |
April, 2006
• | Function FPointFromDXF renamed to MakeFPointFromDXF. |
December, 2005
• | The software supports AutoCAD SHX fonts. Demo Viewer shows how to work with SHX font paths. |
• | CAD Import VCL 5.0 includes Scalable Vector Graphics (SVG) and Computer Graphics Metafile (CGM) support. You can easy include these formats to existing applications which use CAD Import VCL because TsgSVGImage and TsgCGMImage are the TsgDXFImage descendants. |
There are some obsolete functions in the sgConsts module, we do not suggest for using.
• | function FloatPoint(X, Y: Extended): TFPoint; |
function FltPoint3D(X, Y, Z: Extended): TFPoint;
Please use function MakeFPoint(X, Y, Z: TsgFloat): TFPoint;
• | FloatRect(ALeft, ATop, ARight, ABottom: Extended): TFRect; |
Please use function MakeFRect(Left, Top, Z1, Right, Bottom, Z2: TsgFloat): TFRect;
CAD Export VCL component:
July, 2013
•New export class: TsgCADtoDWG;
•TsgCADtoDXF class changed ancestor from TsgCADExport to TsgCADDirectExport class;
•The following properties are obsolete:
oTsgCADtoDXF.Version;
oTsgCADtoDXF.XDataAppName.
•The following methods are obsolete:
oSaveToStream method in the following classes: TsgCADtoCGM, TsgCADtoDXF, TsgCADtoSVG, TsgCADtoSWF, TsgHPGLExport, TsgPDFExport;
oTsgCADtoDXF.ApplyParams;
oTsgPDFExport.SetPageSize.
September, 2009
•New export classes: TsgCADExport, TsgCADtoBIN, TsgCADtoCGM, TsgCADtoSVG, TsgCADtoSWF, TsgHPGLExport, TsgPDFExport.
•New TsgCADImage class, entities classes.
March, 2006
Type TdxfPoint has been replaced by TexpPoint to increase an accuracy.
Go to CAD VCL Enterprise