Embedd DXF/DWG in our CAD-System
Moderators: SDS, support, admin
Embedd DXF/DWG in our CAD-System
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.
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.
<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.
<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.
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
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