Rectangle Position

Discuss and ask questions about CADViewX (Lite and Pro versions).

Moderators: admin, support, SDS

Post Reply
Sfire83
Posts: 2
Joined: 14 Nov 2011, 11:22

Rectangle Position

Post by Sfire83 » 14 Nov 2011, 11:54

Hello,
how can I get the positions of the rectangles shown.

background:
When I zoom,
I want to leave the positions of the rectangles show.
(Not the original size / position)

How do I do that?

Sascha

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

Re: Rectangle Position

Post by support » 15 Nov 2011, 17:21

Hello.
Unfortunately the question isn't clear to us, sorry. Please specify if you need CAD coordinates of control visible area rectangle or screen coordinates of rectangular entity or possible something else.

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

Sfire83
Posts: 2
Joined: 14 Nov 2011, 11:22

Re: Rectangle Position

Post by Sfire83 » 15 Nov 2011, 18:02

Thanks for the answer.

I have lots of rectangles.
if I zoom in, the rectangles are larger (at least it seems so).
And these new coordinates of the rectangle I would like to retrieve.

Do they understand me now?

Is that possible? And you can show me an example?

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

Re: Rectangle Position

Post by support » 16 Nov 2011, 16:27

Hello.
Zooming doesn't change entity CAD coordinates (on drawing). Screen coordinates (on control) changed. You can apply GetPoint method for calculating screen coordinates from CAD coordinates. The method accessible from CADViewX.CADImage class in pro version of library. CADViewX.DXFImage class contains the same method in Lite version.
Entities can be accessed programmatically via CADViewX->CADImage->Converter->Sections(CADViewLib::TxConvSection::csEntities) group. Please use DXFImage instead CADImage for the Lite version.

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

Post Reply