Embedd DXF/DWG in our CAD-System
Posted: 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.
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.