Hello again,
<b>TsgDXFInsert.Point</b> - defines coordinates of Insert itself.
<b>TsgDXFInsert.Block.Offset</b> - defines offset of block (inside of insert) respectively to <b>TsgDXFInsert.Point</b>.
The following code demonstrates Insert moving:
Code: Select all
<b>var</b>
FP: TFPoint;
<b>begin</b>
FP := vInsert.Point;
FP.X := FP.X + 100;
FP.Y := FP.Y + 150;
vInsert.Point := FP;
TsgDXFImage(sgImage1.Picture.Graphic).Converter.Loads(vInsert);
TsgDXFImage(sgImage1.Picture.Graphic).GetExtents;
...
<b>end</b>;
It is important to use <b>GetExtents</b> because of coordinates of insert may get out of drawing extensions.
Sergey.
please post questions to the forum or write to
support@cadsofttools.com