Page 1 of 1
Rectangle Position
Posted: 14 Nov 2011, 11:54
by Sfire83
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
Re: Rectangle Position
Posted: 15 Nov 2011, 17:21
by support
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.
Re: Rectangle Position
Posted: 15 Nov 2011, 18:02
by Sfire83
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?
Re: Rectangle Position
Posted: 16 Nov 2011, 16:27
by support
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.