Viewports import

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

Moderators: SDS, support, admin

Post Reply
Goubet
Posts: 2
Joined: 10 Jan 2007, 13:08
Location: France

Viewports import

Post by Goubet » 18 Jan 2007, 13:05

Hello,
Is it possible to get a list of the entities that we can see in a view port ? And how .

the goal is to draw the paper space as normal layout !

thanks!

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

Post by support » 19 Jan 2007, 16:04

Hello!

<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Is it possible to get a list of the entities that we can see in a view port ? And how .<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
It is known that viewport views entities of Model_Space (this is Layout named "Model") with predefined view point, direction vector (and some other less important parameters). That is why we make respective coordinate's transformation matrix for viewing entities inside of VIEWPORT. Viewport with rectangle border allows determining entities' visibility basing on viewport's Box property. The same way entities' visibility is determined in the "window" in DXFImage.pas -> TsgDXFImage.DrawEntity. Please examine this procodure.
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">the goal is to draw the paper space as normal layout !<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
If possible please describe your task in detail.

Sergey.

Please post questions to the forum or write to support@cadsofttools.com

Post Reply