If you have any comments or questions about our CADViewX, please do not hesitate to contact us at this forum
Moderators: admin, SDS, support
by Sfire83 » 14 Nov 2011, 08: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
-
Sfire83
-
- Posts: 2
- Joined: 14 Nov 2011, 08:22
by support » 15 Nov 2011, 14: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.
-
support
-
- Posts: 2230
- Joined: 30 Mar 2005, 08:36
- Location: Russia
-
by Sfire83 » 15 Nov 2011, 15: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?
-
Sfire83
-
- Posts: 2
- Joined: 14 Nov 2011, 08:22
by support » 16 Nov 2011, 13: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.
-
support
-
- Posts: 2230
- Joined: 30 Mar 2005, 08:36
- Location: Russia
-
Return to CADViewX
Who is online
Users browsing this forum: No registered users and 1 guest