Embedd DXF/DWG in our CAD-System

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

Moderators: SDS, support, admin

Post Reply
Andreas
Posts: 1
Joined: 25 Aug 2005, 11:33
Location: Germany
Contact:

Embedd DXF/DWG in our CAD-System

Post by Andreas » 25 Aug 2005, 12:38

Hello,

I want to use your developer tool to display DXF/DWG - Data in our CAD application, without really importing the data.
The DWG-drawing should appear "embedded" in our drawing.
To display, zoom, pan, print etc our data we have our own tools.

The easiest way for us to integrate an dwg/dxf drawing in our system
would be an routine looking something like that:

TsgDXFImage.MyStretchdraw ( DC: HDC; Modelrect: TFrect; PixelRect: TRect );

where Modelrect specifies an arbitrary rectangle in "model-space" = DXF/DWG-coordinates which should be "cut-out" and be displayed on the DC within the PixelRect.

Writing such an routine one should keep in mind, that the rectangles can specify such an huge scaling factor, that it is impossible to create an bitmap to draw the whole data on it.
( I think you have "bigscale" to solve such problems ? )

How can I use the methods in the developer toolkit for delphi to write such an routine ?

Thank you for any help you can give me.

Evgeny
Posts: 115
Joined: 16 Mar 2004, 11:04
Location: Russia

Post by Evgeny » 26 Aug 2005, 13:09

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by Andreas</i>
<br />Hello,

I want to use your developer tool to display DXF/DWG - Data in our CAD application, without really importing the data.
The DWG-drawing should appear "embedded" in our drawing.
To display, zoom, pan, print etc our data we have our own tools.

The easiest way for us to integrate an dwg/dxf drawing in our system
would be an routine looking something like that:

TsgDXFImage.MyStretchdraw ( DC: HDC; Modelrect: TFrect; PixelRect: TRect );

where Modelrect specifies an arbitrary rectangle in "model-space" = DXF/DWG-coordinates which should be "cut-out" and be displayed on the DC within the PixelRect.

Writing such an routine one should keep in mind, that the rectangles can specify such an huge scaling factor, that it is impossible to create an bitmap to draw the whole data on it.
( I think you have "bigscale" to solve such problems ? )

How can I use the methods in the developer toolkit for delphi to write such an routine ?

Thank you for any help you can give me.

<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

Hello,
Thank you for interesting suggestion.
We will make the demo soon and let you know. All that you need will be implemented.

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

Post by support » 09 Sep 2005, 13:33

The new
procedure TsgDXFImage.DrawRect(DC: HDC; SourceRect: TFRect; DestRect: TRect);
had been added. It we'll be available for downloading soon.

Sergey.

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

Ken
Posts: 1
Joined: 29 Sep 2005, 15:46
Contact:

Post by Ken » 29 Sep 2005, 15:48

I am also interested in this new method. Please let us know when it is available.

Post Reply