How to get point on sgImage from point in drawing
Moderators: SDS, support, admin
How to get point on sgImage from point in drawing
Hi There,
How can I get the point on TsgImage for a given point in DXF drawing. I want to get the coordinates (X, Y) similar to that returned by TsgImage's mouse move event, programmatically. I tried to use method GetRealImagePoint of TsgDXFImage, but it seems to return the same TFPoint structure, that was passed to it as an argument. Please help.
Thanks & Regards,
Avinash
How can I get the point on TsgImage for a given point in DXF drawing. I want to get the coordinates (X, Y) similar to that returned by TsgImage's mouse move event, programmatically. I tried to use method GetRealImagePoint of TsgDXFImage, but it seems to return the same TFPoint structure, that was passed to it as an argument. Please help.
Thanks & Regards,
Avinash
Hello, Avinash.
It is necessary to use function TsgDXFImage.GetPoint(const P: TFPoint): TPoint;
It ransforms point in CAD 3D coordinate system into point in 2D coordinate system base on the current rotate angle and the scale.
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
It is necessary to use function TsgDXFImage.GetPoint(const P: TFPoint): TPoint;
It ransforms point in CAD 3D coordinate system into point in 2D coordinate system base on the current rotate angle and the scale.
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
Of course sgImage window. It has plain coordinate system in contrast to CAD drawings, which have 3D coordinate system.
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
Sergey.
Please post questions to the forum or write to support@cadsofttools.com