Moving a TsgDXFImageEnt

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
Jourde
Posts: 33
Joined: 10 Sep 2004, 10:33
Location: France
Contact:

Moving a TsgDXFImageEnt

Post by Jourde » 26 Mar 2010, 11:56

Hi,

i continu my software unsing CadImporVCl.

Now i add Externals dwg and BitMap files to puts on the drawing existing.

To enable user to modify the 'externals entities', i add a form to change position, scale,etc...
for sample for Insert : Point.x and Point.y -> The attach point of the Insert : that's working well.

But for a TsgDXFImageEnt, modifying point.x and point.y just move the left-bottom point of my Bitmap ! (the three other points don't move and then the image is disformed)

What does i need to change to move the entery of the bitmap ?
and Point1.x and Point2.Y for changing the Height and the width ?

Best Regards

E.Jourde

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Moving a TsgDXFImageEnt

Post by support » 29 Mar 2010, 11:36

Hello.
TsgDXFImageEnt.Point specifies position, TsgDXFImageEnt.Height and TsgDXFImageEnt.Width specify the object height and width. Do not change the Point1, Point2 and Point3 properties for resizing TsgDXFImageEnt object. Please try AddNewEntity demo from CADImport VCL package.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply